[vlc-commits] fb: provide dummy display control callback
Rémi Denis-Courmont
git at videolan.org
Mon Apr 1 19:45:59 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 1 19:52:31 2019 +0300| [5c35442d13fcc1ad0793770929b742376b4e506e] | committer: Rémi Denis-Courmont
fb: provide dummy display control callback
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5c35442d13fcc1ad0793770929b742376b4e506e
---
modules/video_output/fb.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/fb.c b/modules/video_output/fb.c
index a890b5932b..fff5ff31fd 100644
--- a/modules/video_output/fb.c
+++ b/modules/video_output/fb.c
@@ -343,9 +343,19 @@ static void Display(vout_display_t *vd, picture_t *picture)
picture_Copy(sys->picture, 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