[vlc-commits] kms: provide dummy display control callback
Rémi Denis-Courmont
git at videolan.org
Mon Apr 1 19:46:00 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 1 19:52:31 2019 +0300| [0b497ab3dd688555d764d45e605d7a66d1b269c5] | committer: Rémi Denis-Courmont
kms: provide dummy display control callback
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b497ab3dd688555d764d45e605d7a66d1b269c5
---
modules/video_output/kms.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/kms.c b/modules/video_output/kms.c
index 3417d07a9d..3e0f02188f 100644
--- a/modules/video_output/kms.c
+++ b/modules/video_output/kms.c
@@ -584,9 +584,16 @@ err_out:
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_EGENERIC;
}
More information about the vlc-commits
mailing list