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

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


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

vdummy: provide dummy display control callback

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

 modules/video_output/vdummy.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/vdummy.c b/modules/video_output/vdummy.c
index 8ae0b2dfa7..a2ae8dad44 100644
--- a/modules/video_output/vdummy.c
+++ b/modules/video_output/vdummy.c
@@ -123,8 +123,15 @@ static void DisplayStat(vout_display_t *vd, picture_t *picture)
 
 static int Control(vout_display_t *vd, int query, va_list args)
 {
-    VLC_UNUSED(vd);
-    VLC_UNUSED(query);
-    VLC_UNUSED(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_SUCCESS;
 }



More information about the vlc-commits mailing list