]> sjero.net Git - linphone/commitdiff
fix bug with preview setting
authorSimon Morlat <simon.morlat@linphone.org>
Mon, 17 Sep 2012 14:02:29 +0000 (16:02 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Mon, 17 Sep 2012 14:02:57 +0000 (16:02 +0200)
coreapi/linphonecore.c

index 152ccf80ce9053661acc2bcaf91979df813a5273..a907f32550be0f2e78f52def7b7d51ad83d22107 100644 (file)
@@ -844,6 +844,7 @@ static void video_config_read(LinphoneCore *lc){
                ms_message("we are using a specific display:%s\n",lc->video_conf.displaytype);
 
        linphone_core_enable_video(lc,capture,display);
+       linphone_core_enable_video_preview(lc,lp_config_get_int(lc->config,"video","show_local",0));
        linphone_core_enable_self_view(lc,self_view);
        linphone_core_set_video_policy(lc,&vpol);
 #endif