]> sjero.net Git - linphone/commitdiff
enable preview for ios
authorJehan Monnier <jehan.monnier@linphone.org>
Wed, 13 Jul 2011 16:20:58 +0000 (18:20 +0200)
committerJehan Monnier <jehan.monnier@linphone.org>
Wed, 13 Jul 2011 16:20:58 +0000 (18:20 +0200)
coreapi/linphonecore.c
mediastreamer2

index 934ebefa634d5e6e6cdbe7643e91608dbef3b370..8d9e36438f63516a7072ebaa10fd0770d0eb3c31 100644 (file)
@@ -3422,7 +3422,13 @@ unsigned long linphone_core_get_native_preview_window_id(const LinphoneCore *lc)
  * If not set the core will create its own window.
 **/
 void linphone_core_set_native_preview_window_id(LinphoneCore *lc, unsigned long id){
+#ifdef VIDEO_ENABLED
        lc->preview_window_id=id;
+       LinphoneCall *call=linphone_core_get_current_call(lc);
+       if (call!=NULL && call->videostream){
+               video_stream_set_native_preview_window_id(call->videostream,id);
+       }
+#endif
 }
 
 /**
index 3d8b6a5f9b974440046430ec1998bab623c07366..a9038f2d00e9713edeb4dd1e8916d42f5e3543d3 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 3d8b6a5f9b974440046430ec1998bab623c07366
+Subproject commit a9038f2d00e9713edeb4dd1e8916d42f5e3543d3