]> sjero.net Git - linphone/commitdiff
Restart media streams when updating them even if only the video stream is running.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 23 Aug 2012 14:57:52 +0000 (16:57 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 24 Aug 2012 08:57:05 +0000 (10:57 +0200)
coreapi/callbacks.c

index 95d5b81afa50a81c9c850d916930ac29c0f7f0fb..161aaab24150811d33ba8f6041d754cc779a3c26 100644 (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){