[vlc-devel] [PATCH 3/7] xcb: handle VOUT_DISPLAY_CHANGE_VIEWPOINT events

Steve Lhomme robux4 at videolabs.io
Mon Sep 12 14:01:33 CEST 2016


--
untested but trivial enough
---
 modules/video_output/xcb/glx.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index 469f9ec..3dff282 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -247,6 +247,14 @@ 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 video_format_t *src = va_arg (args, const video_format_t *);
+        vout_display_opengl_SetViewpoint(sys->vgl, src->f_pose_yaw_degrees,
+                                         src->f_pose_pitch_degrees, src->f_pose_roll_degrees);
+        return VLC_SUCCESS;
+    }
+
     case VOUT_DISPLAY_RESET_PICTURES:
         vlc_assert_unreachable ();
     default:
-- 
2.8.2



More information about the vlc-devel mailing list