Restart media streams when updating them even if only the video stream is running.

This commit is contained in:
Ghislain MARY 2012-08-23 16:57:52 +02:00
parent 3b8e54e6ec
commit 101278f2f0

View file

@ -49,7 +49,7 @@ void linphone_core_update_streams(LinphoneCore *lc, LinphoneCall *call, SalMedia
if (call->ice_session != NULL) {
linphone_core_deactivate_ice_for_deactivated_media_streams(call, call->resultdesc);
}
if (call->audiostream && call->audiostream->ticker){
if ((call->audiostream && call->audiostream->ticker) || (call->videostream && call->videostream->ticker)){
/* we already started media: check if we really need to restart it*/
if (oldmd){
if (!media_parameters_changed(call,oldmd,new_md) && !call->playing_ringbacktone){