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

direct3d11: only set successful state when at the end

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 23c328d0
......@@ -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;
}
......
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