vlc | branch: master | Steve Lhomme <[email protected]> | 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;
 }
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to