[vlc-commits] vout: decklink: only set the vd->sys when everything is OK
Steve Lhomme
git at videolan.org
Mon Jul 22 07:20:46 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 16 14:25:10 2019 +0200| [ff6c68f6ea5d7500700958f1c531a6365a8a0e27] | committer: Steve Lhomme
vout: decklink: only set the vd->sys when everything is OK
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff6c68f6ea5d7500700958f1c531a6365a8a0e27
---
modules/video_output/decklink.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index 80c23344ae..b2516541d6 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -779,8 +779,6 @@ static int OpenVideo(vout_display_t *vd, const vout_display_cfg_t *cfg,
if(!sys)
return VLC_ENOMEM;
- vd->sys = (vout_display_sys_t*) sys;
-
bool b_init;
vlc_mutex_lock(&sys->lock);
b_init = !sys->b_recycling;
@@ -818,6 +816,8 @@ static int OpenVideo(vout_display_t *vd, const vout_display_cfg_t *cfg,
vd->display = NULL;
vd->control = ControlVideo;
+ vd->sys = (vout_display_sys_t*) sys;
+
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list