[vlc-commits] cropadd: log when the chroma is not supported or NULL

Steve Lhomme git at videolan.org
Mon Aug 8 19:31:28 CEST 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Aug  8 17:06:07 2016 +0200| [2c5d6c23453424744b9c68d3cb08327e8ff66693] | committer: Jean-Baptiste Kempf

cropadd: log when the chroma is not supported or NULL

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

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

 modules/video_filter/croppadd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/video_filter/croppadd.c b/modules/video_filter/croppadd.c
index ccc7a56..b69bc24 100644
--- a/modules/video_filter/croppadd.c
+++ b/modules/video_filter/croppadd.c
@@ -147,7 +147,11 @@ static int OpenFilter( vlc_object_t *p_this )
     const vlc_chroma_description_t *p_chroma =
         vlc_fourcc_GetChromaDescription( p_filter->fmt_in.video.i_chroma );
     if( p_chroma == NULL || p_chroma->plane_count == 0 )
+    {
+        msg_Err( p_filter, "Unknown input chroma %4.4s", p_filter->fmt_in.video.i_chroma?
+                     (const char*)&p_filter->fmt_in.video.i_chroma : "xxxx" );
         return VLC_EGENERIC;
+    }
 
     p_filter->p_sys = (filter_sys_t *)malloc( sizeof( filter_sys_t ) );
     if( !p_filter->p_sys ) return VLC_ENOMEM;



More information about the vlc-commits mailing list