[vlc-devel] [PATCH 09/10] xcb: handle VOUT_DISPLAY_CHANGE_VIEWPOINT events

Steve Lhomme robux4 at videolabs.io
Tue Sep 20 10:11:16 CEST 2016


--
untested but trivial enough
replaces https://patches.videolan.org/patch/14433/ using vout_display_cfg_t
replaces https://patches.videolan.org/patch/14460/ using vlc_viewpoint
---
 modules/video_output/xcb/glx.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index 469f9ec..d2615a6 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -247,6 +247,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
         xcb_flush (sys->conn);
         return VLC_SUCCESS;
 
+    case VOUT_DISPLAY_CHANGE_VIEWPOINT:
+    {
+        const vout_display_cfg_t *p_cfg = va_arg (args, const vout_display_cfg_t *);
+        vout_display_opengl_SetViewpoint(sys->vgl, &p_cfg->viewpoint);
+        return VLC_SUCCESS;
+    }
+
     case VOUT_DISPLAY_RESET_PICTURES:
         vlc_assert_unreachable ();
     default:
-- 
2.8.2



More information about the vlc-devel mailing list