[vlc-devel] [PATCH 6/6] deinterlace: in case the deinterlacing didn't work return the source picture

Steve Lhomme robux4 at videolabs.io
Tue Aug 1 10:25:47 CEST 2017


It's better than no display at all.
But don't display anything in debug mode, it's easier to spot errors.
---
 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.12.1



More information about the vlc-devel mailing list