[vlc-commits] deinterlace: show the interlaced picture rather than nothing in case of error

Steve Lhomme git at videolan.org
Sat Oct 14 19:03:40 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Oct 13 12:59:14 2017 +0200| [c5cc8aaf259a8dc88790ff5ff1a611521c079553] | committer: Jean-Baptiste Kempf

deinterlace: show the interlaced picture rather than nothing in case of error

Only in release builds.

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

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

 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
 }



More information about the vlc-commits mailing list