]> sjero.net Git - linphone/blobdiff - coreapi/linphonecall.c
Merge branch 'master' of git.sv.gnu.org:/srv/git/linphone
[linphone] / coreapi / linphonecall.c
index 3640345fa82517f272ba8d6047981d19ba8a2009..02854fed20ac12f3299af9403fa37b8340235818 100644 (file)
@@ -863,7 +863,7 @@ void linphone_call_start_media_streams(LinphoneCall *call, bool_t all_inputs_mut
        {
                const SalStreamDescription *stream=sal_media_description_find_stream(call->resultdesc,
                                                        SalProtoRtpAvp,SalAudio);
-               if (stream && stream->dir!=SalStreamInactive){
+               if (stream && stream->dir!=SalStreamInactive && stream->port!=0){
                        MSSndCard *playcard=lc->sound_conf.lsd_card ? 
                                lc->sound_conf.lsd_card : lc->sound_conf.play_sndcard;
                        MSSndCard *captcard=lc->sound_conf.capt_sndcard;
@@ -945,7 +945,7 @@ void linphone_call_start_media_streams(LinphoneCall *call, bool_t all_inputs_mut
                        lc->previewstream=NULL;
                }
                call->current_params.has_video=FALSE;
-               if (vstream && vstream->dir!=SalStreamInactive) {
+               if (vstream && vstream->dir!=SalStreamInactive && vstream->port!=0) {
                        const char *addr=vstream->addr[0]!='\0' ? vstream->addr : call->resultdesc->addr;
                        call->video_profile=make_profile(call,call->resultdesc,vstream,&used_pt);
                        if (used_pt!=-1){