[vlc-commits] vout: track auto-scale in persistent configuration

Rémi Denis-Courmont git at videolan.org
Sat Jan 26 19:51:00 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 24 22:37:16 2019 +0200| [d45bda1afbaa48bfeba85e302f1382fcf2bbb88a] | committer: Rémi Denis-Courmont

vout: track auto-scale in persistent configuration

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d45bda1afbaa48bfeba85e302f1382fcf2bbb88a
---

 src/video_output/video_output.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 853232eba8..417947a07c 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -659,8 +659,16 @@ void vout_ControlChangeDisplaySize(vout_thread_t *vout,
     cmd.window.height = height;
     vout_control_Push(&vout->p->control, &cmd);
 }
+
 void vout_ControlChangeDisplayFilled(vout_thread_t *vout, bool is_filled)
 {
+    vout_thread_sys_t *sys = vout->p;
+
+    vlc_mutex_lock(&sys->window_lock);
+    sys->display_cfg.is_display_filled = is_filled;
+    /* no window size update here */
+    vlc_mutex_unlock(&sys->window_lock);
+
     vout_control_PushBool(&vout->p->control, VOUT_CONTROL_DISPLAY_FILLED,
                           is_filled);
 }



More information about the vlc-commits mailing list