[vlc-devel] [PATCH] cropadd: log when the chroma is not supported or NULL
Steve Lhomme
robux4 at videolabs.io
Mon Aug 8 17:06:07 CEST 2016
---
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;
--
2.8.2
More information about the vlc-devel
mailing list