[vlc-devel] [PATCH 1/2] deinterlace: show the interlaced picture rather than nothing in case of error

Steve Lhomme robux4 at videolabs.io
Fri Oct 13 12:59:14 CEST 2017


Only in release builds.
---
 modules/video_filter/deinterlace/common.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/video_filter/deinterlace/common.c b/modules/video_filter/deinterlace/common.c
index ea9c6af464..1791190ff8 100644
--- a/modules/video_filter/deinterlace/common.c
+++ b/modules/video_filter/deinterlace/common.c
@@ -351,6 +351,10 @@ drop:
         if( p_dst[i] )
             picture_Release( p_dst[i] );
     }
+#ifndef NDEBUG
     picture_Release( p_pic );
     return NULL;
+#else
+    return p_pic;
+#endif
 }
-- 
2.14.2



More information about the vlc-devel mailing list