[vlc-devel] [PATCH 11/14] vout_macosx: handle VOUT_DISPLAY_CHANGE_VIEWPOINT events

Steve Lhomme robux4 at videolabs.io
Fri Sep 30 18:36:22 CEST 2016


---
 modules/video_output/macosx.m | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 6c13eb6..8e55746 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -428,7 +428,14 @@ static int Control (vout_display_t *vd, int query, va_list ap)
                 [NSCursor setHiddenUntilMouseMoves: YES];
                 return VLC_SUCCESS;
             }
-                
+
+            case VOUT_DISPLAY_CHANGE_VIEWPOINT:
+            {
+                const vout_display_cfg_t *p_cfg = va_arg (ap, 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