[vlc-commits] vout:decklink: don't init the internal video_format_t
Steve Lhomme
git at videolan.org
Mon Aug 27 17:14:07 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 27 13:25:45 2018 +0200| [ed0997234921a6b27b764584be9a5e81a5037c87] | committer: Steve Lhomme
vout:decklink: don't init the internal video_format_t
it will either be copied or not used at all on failure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed0997234921a6b27b764584be9a5e81a5037c87
---
modules/video_output/decklink.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index 76873a8f11..bc6ac64c9c 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -1045,7 +1045,6 @@ static int OpenVideo(vlc_object_t *p_this)
sys->video.ar = var_InheritInteger(p_this, VIDEO_CFG_PREFIX "ar");
sys->video.pic_nosignal = NULL;
sys->video.pool = NULL;
- video_format_Init( &sys->video.currentfmt, 0 );
if (OpenDecklink(vd, sys) != VLC_SUCCESS)
{
More information about the vlc-commits
mailing list