[vlc-devel] [PATCH 16/20] vout/macosx: use the picture placement from the core

Steve Lhomme robux4 at ycbcr.xyz
Tue Aug 25 09:30:04 CEST 2020


---
 modules/video_output/macosx.m | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index ffa6b83ee0f..e1917dde31f 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -326,11 +326,10 @@ static void PictureDisplay (vout_display_t *vd, picture_t *pic)
     if (vlc_gl_MakeCurrent(sys->gl) == VLC_SUCCESS)
     {
         if (@available(macOS 10.14, *)) {
-            vout_display_place_t place;
-            vout_display_PlacePicture(&place, &vd->source, &sys->cfg);
-            vout_display_opengl_Viewport(vd->sys->vgl, place.x,
-                                         sys->cfg.display.height - (place.y + place.height),
-                                         place.width, place.height);
+            const vout_display_place_t *place = vd->place;
+            vout_display_opengl_Viewport(vd->sys->vgl, place->x,
+                                         sys->cfg.display.height - (place->y + place->height),
+                                         place->width, place->height);
         }
 
         vout_display_opengl_Display(sys->vgl);
-- 
2.26.2



More information about the vlc-devel mailing list