Commit 82a6f61d authored by Simon Morlat's avatar Simon Morlat
Browse files

Fix regression in audio bandwidth allocation causing two failed tests.

parent d8e22d28
......@@ -726,7 +726,7 @@ int MS2Stream::getIdealAudioBandwidth (const std::shared_ptr<SalMediaDescription
} else
uploadBandwidth = linphone_core_get_upload_bandwidth(getCCore());
uploadBandwidth = PayloadTypeHandler::getMinBandwidth(uploadBandwidth, remoteBandwidth);
if ((md->nbActiveStreamsOfType(SalVideo) != 0) || forced)
if ((md->nbActiveStreamsOfType(SalVideo) == 0) || forced)
return uploadBandwidth;
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment