Commit b22442ed authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: fix the output video_format_t initialization

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent f3fa48ec
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment