[vlc-commits] vout:win32: initialize the display_win32_area_t separately
Steve Lhomme
git at videolan.org
Mon Apr 1 16:56:02 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 22 13:12:19 2019 +0100| [a7eaeed9829bb2d91d57fffa61386678f077d27f] | committer: Steve Lhomme
vout:win32: initialize the display_win32_area_t separately
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7eaeed9829bb2d91d57fffa61386678f077d27f
---
modules/video_output/win32/common.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index d951fafd00..094b3f2202 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -73,14 +73,19 @@ static bool GetExternalDimensions(void *opaque, UINT *width, UINT *height)
return true;
}
-/* */
-int CommonInit(vout_display_t *vd, display_win32_area_t *area, vout_display_sys_win32_t *sys,
- bool b_windowless, const vout_display_cfg_t *vdcfg)
+static void InitArea(vout_display_t *vd, display_win32_area_t *area, const vout_display_cfg_t *vdcfg)
{
area->place_changed = false;
area->pf_GetDisplayDimensions = GetExternalDimensions;
area->opaque_dimensions = vd;
area->vdcfg = *vdcfg;
+}
+
+/* */
+int CommonInit(vout_display_t *vd, display_win32_area_t *area, vout_display_sys_win32_t *sys,
+ bool b_windowless, const vout_display_cfg_t *vdcfg)
+{
+ InitArea(vd, area, vdcfg);
sys->hwnd = NULL;
sys->hvideownd = NULL;
More information about the vlc-commits
mailing list