[vlc-commits] direct3d11: only set successful state when at the end
Steve Lhomme
git at videolan.org
Tue Nov 28 12:26:02 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Nov 28 11:19:19 2017 +0100| [0f3194c4db45dceef235dd83e313e54545ff4ec6] | committer: Jean-Baptiste Kempf
direct3d11: only set successful state when at the end
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0f3194c4db45dceef235dd83e313e54545ff4ec6
---
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;
}
More information about the vlc-commits
mailing list