[vlc-commits] vout: track viewpoint in persistent configuration

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


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

vout: track viewpoint in persistent configuration

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

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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 9879387a74..8a21d40983 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -798,7 +798,14 @@ void vout_ControlChangeSubMargin(vout_thread_t *vout, int margin)
 void vout_ControlChangeViewpoint(vout_thread_t *vout,
                                  const vlc_viewpoint_t *p_viewpoint)
 {
+    vout_thread_sys_t *sys = vout->p;
     vout_control_cmd_t cmd;
+
+    vlc_mutex_lock(&sys->window_lock);
+    sys->display_cfg.viewpoint = *p_viewpoint;
+    /* no window size update here */
+    vlc_mutex_unlock(&sys->window_lock);
+
     vout_control_cmd_Init(&cmd, VOUT_CONTROL_VIEWPOINT);
     cmd.viewpoint = *p_viewpoint;
     vout_control_Push(&vout->p->control, &cmd);



More information about the vlc-commits mailing list