]> git.sesse.net Git - vlc/commitdiff
Print error when chroma is not supported
authorJean-Paul Saman <jpsaman@videolan.org>
Mon, 3 Sep 2007 20:26:21 +0000 (20:26 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Mon, 3 Sep 2007 20:26:21 +0000 (20:26 +0000)
modules/codec/dvbsub.c

index 96cd7f94d3ddee06fb501dff1e8daa28c452d479..6d761fecd466afc051cba739c4c00e4b9880b118 100644 (file)
@@ -1903,7 +1903,11 @@ static block_t *Encode( encoder_t *p_enc, subpicture_t *p_subpic )
     if( !p_region ) return NULL;
 
     if( p_region->fmt.i_chroma != VLC_FOURCC('T','E','X','T') &&
-        p_region->fmt.i_chroma != VLC_FOURCC('Y','U','V','P') ) return NULL;
+        p_region->fmt.i_chroma != VLC_FOURCC('Y','U','V','P') )
+    {
+         msg_Err( p_enc, "chroma not supported", p_region->fmt.i_chroma );
+         return NULL;
+    }
 
     if( p_region->fmt.p_palette )
     {