]> sjero.net Git - linphone/commitdiff
set video preview window id effective immediately when possible
authorSimon Morlat <simon.morlat@linphone.org>
Mon, 17 Sep 2012 14:23:22 +0000 (16:23 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Mon, 17 Sep 2012 14:23:22 +0000 (16:23 +0200)
coreapi/linphonecore.c

index a907f32550be0f2e78f52def7b7d51ad83d22107..99482f6205b7858b425de74fae0d94a3dd5adf3d 100644 (file)
@@ -4096,6 +4096,8 @@ void linphone_core_set_native_preview_window_id(LinphoneCore *lc, unsigned long
        LinphoneCall *call=linphone_core_get_current_call(lc);
        if (call!=NULL && call->videostream){
                video_stream_set_native_preview_window_id(call->videostream,id);
+       }else if (lc->previewstream){
+               video_preview_set_native_window_id(lc->previewstream,id);
        }
 #endif
 }