[vlc-devel] [PATCH 6/6] direct3d11: fix the output video_format_t initialization
Steve Lhomme
robux4 at videolabs.io
Thu Jul 27 17:46:13 CEST 2017
---
modules/video_output/win32/direct3d11.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 150bbfd0b1..62da3dd839 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -532,13 +532,14 @@ static int Open(vlc_object_t *object)
#endif
video_format_t fmt;
+ video_format_Copy(&fmt, &vd->source);
if (Direct3D11Open(vd, &fmt)) {
msg_Err(vd, "Direct3D11 could not be opened");
goto error;
}
video_format_Clean(&vd->fmt);
- video_format_Copy(&vd->fmt, &fmt);
+ vd->fmt = fmt;
vd->info.has_double_click = true;
vd->info.has_hide_mouse = false;
@@ -1484,8 +1485,6 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
vout_display_sys_t *sys = vd->sys;
IDXGIFactory2 *dxgifactory;
- *fmt = vd->source;
-
#if !VLC_WINSTORE_APP
UINT creationFlags = 0;
--
2.12.1
More information about the vlc-devel
mailing list