[vlc-commits] decklink: no need to Clean() the video_format_t before Init()

Steve Lhomme git at videolan.org
Thu Jul 13 11:10:16 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Jul 11 13:34:55 2017 +0200| [7cf0b7013c57d71c796f36aaa1ed1f62a3b80f10] | committer: Jean-Baptiste Kempf

decklink: no need to Clean() the video_format_t before Init()

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7cf0b7013c57d71c796f36aaa1ed1f62a3b80f10
---

 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 35cb1ada38..c876b2e8b6 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -445,7 +445,6 @@ static picture_t * CreateNoSignalPicture(vlc_object_t *p_this, const video_forma
     if (png)
     {
         video_format_Clean(&dummy);
-        video_format_Init(&dummy, 0);
         video_format_Copy(&dummy, fmt);
         p_pic = image_Convert(img, png, &in, &dummy);
         if(!video_format_IsSimilar(&dummy, fmt))



More information about the vlc-commits mailing list