[vlc-commits] yuv: provide dummy display control callback

Rémi Denis-Courmont git at videolan.org
Mon Apr 1 19:46:05 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr  1 19:52:31 2019 +0300| [3345cbd1f5874008eed8355731a2fad8351bff99] | committer: Rémi Denis-Courmont

yuv: provide dummy display control callback

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3345cbd1f5874008eed8355731a2fad8351bff99
---

 modules/video_output/yuv.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/yuv.c b/modules/video_output/yuv.c
index e8b49e621c..790729ca96 100644
--- a/modules/video_output/yuv.c
+++ b/modules/video_output/yuv.c
@@ -250,6 +250,15 @@ static void Display(vout_display_t *vd, picture_t *picture)
 
 static int Control(vout_display_t *vd, int query, va_list args)
 {
-    (void) vd; (void) query; (void) args;
+    (void) vd; (void) args;
+
+    switch (query) {
+        case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
+        case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED:
+        case VOUT_DISPLAY_CHANGE_ZOOM:
+        case VOUT_DISPLAY_CHANGE_SOURCE_ASPECT:
+        case VOUT_DISPLAY_CHANGE_SOURCE_CROP:
+            return VLC_SUCCESS;
+    }
     return VLC_EGENERIC;
 }



More information about the vlc-commits mailing list