[vlc-devel] [PATCH 2/7] vout_macosx: handle VOUT_DISPLAY_CHANGE_VIEWPOINT events

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


--
untested but trivial enough
---
 modules/video_output/macosx.m | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 4458b46..56a05d1 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -428,7 +428,15 @@ static int Control (vout_display_t *vd, int query, va_list ap)
                 [NSCursor setHiddenUntilMouseMoves: YES];
                 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