[vlc-devel] [PATCH 2/9] direct3d11: only set successful state when at the end
Steve Lhomme
robux4 at videolabs.io
Tue Nov 28 11:19:19 CET 2017
---
modules/video_output/win32/direct3d11.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 448cac6c6b..82c5e4013f 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -515,6 +515,11 @@ static int Open(vlc_object_t *object)
video_format_Clean(&vd->fmt);
vd->fmt = fmt;
+#if !VLC_WINSTORE_APP
+ EventThreadUpdateTitle(vd->sys->sys.event, VOUT_TITLE " (Direct3D11 output)");
+#endif
+ msg_Dbg(vd, "Direct3D11 device adapter successfully initialized");
+
vd->info.has_double_click = true;
vd->info.has_pictures_invalid = vd->info.is_slow;
@@ -1546,11 +1551,6 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
return VLC_EGENERIC;
}
-#if !VLC_WINSTORE_APP
- EventThreadUpdateTitle(sys->sys.event, VOUT_TITLE " (Direct3D11 output)");
-#endif
-
- msg_Dbg(vd, "Direct3D11 device adapter successfully initialized");
return VLC_SUCCESS;
}
--
2.14.2
More information about the vlc-devel
mailing list