[vlc-commits] wdummy: report missing initial window size
Rémi Denis-Courmont
git at videolan.org
Sat Jan 26 19:50:46 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 26 14:39:14 2019 +0200| [0d14ab381dee7a6f52004a8f66e57afded7ff5d5] | committer: Rémi Denis-Courmont
wdummy: report missing initial window size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d14ab381dee7a6f52004a8f66e57afded7ff5d5
---
modules/video_output/wdummy.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/video_output/wdummy.c b/modules/video_output/wdummy.c
index c69b28f840..8f5668517f 100644
--- a/modules/video_output/wdummy.c
+++ b/modules/video_output/wdummy.c
@@ -30,7 +30,14 @@
#include <vlc_plugin.h>
#include <vlc_vout_window.h>
+static int Enable(vout_window_t *wnd, const vout_window_cfg_t *cfg)
+{
+ vout_window_ReportSize(wnd, cfg->width, cfg->height);
+ return VLC_SUCCESS;
+}
+
static const struct vout_window_operations ops = {
+ .enable = Enable,
.resize = vout_window_ReportSize,
};
More information about the vlc-commits
mailing list