[vlc-commits] vmem: provide dummy display control callback
Rémi Denis-Courmont
git at videolan.org
Mon Apr 1 19:46:04 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 1 19:52:31 2019 +0300| [b982522651ccaa287d310ee18a50d5a615e01b3b] | committer: Rémi Denis-Courmont
vmem: provide dummy display control callback
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b982522651ccaa287d310ee18a50d5a615e01b3b
---
modules/video_output/vmem.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/vmem.c b/modules/video_output/vmem.c
index 210400294c..87ea3244f4 100644
--- a/modules/video_output/vmem.c
+++ b/modules/video_output/vmem.c
@@ -264,6 +264,15 @@ static void Display(vout_display_t *vd, picture_t *pic)
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