Don't send failure messages when probing filter. (It unfortunately seems impossible...
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 23 Aug 2008 17:07:19 +0000 (19:07 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 23 Aug 2008 17:07:19 +0000 (19:07 +0200)
modules/audio_filter/channel_mixer/mono.c

index fbea2dd..e2c6c6b 100644 (file)
@@ -359,15 +359,15 @@ static int OpenFilter( vlc_object_t *p_this )
 
     if( aout_FormatNbChannels( &(p_filter->fmt_in.audio) ) == 1 )
     {
-        msg_Dbg( p_filter, "filter discarded (incompatible format)" );
+        /*msg_Dbg( p_filter, "filter discarded (incompatible format)" );*/
         return VLC_EGENERIC;
     }
 
     if( (p_filter->fmt_in.i_codec != AOUT_FMT_S16_NE) ||
         (p_filter->fmt_out.i_codec != AOUT_FMT_S16_NE) )
     {
-        msg_Err( p_this, "filter discarded (invalid format)" );
-        return -1;
+        /*msg_Err( p_this, "filter discarded (invalid format)" );*/
+        return VLC_EGENERIC;
     }
 
     if( (p_filter->fmt_in.audio.i_format != p_filter->fmt_out.audio.i_format) &&
@@ -377,7 +377,7 @@ static int OpenFilter( vlc_object_t *p_this )
         (p_filter->fmt_in.audio.i_bitspersample !=
                                     p_filter->fmt_out.audio.i_bitspersample))
     {
-        msg_Err( p_this, "couldn't load mono filter" );
+        /*msg_Err( p_this, "couldn't load mono filter" );*/
         return VLC_EGENERIC;
     }