mono: Specify the expected format rather than failing
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Mon, 16 Jun 2014 21:26:33 +0000 (00:26 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 17 Jun 2014 18:57:03 +0000 (21:57 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/audio_filter/channel_mixer/mono.c

index bafda10..0bb71cc 100644 (file)
@@ -347,13 +347,8 @@ static int OpenFilter( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    if( (p_filter->fmt_in.audio.i_format != p_filter->fmt_out.audio.i_format) ||
-        (p_filter->fmt_in.audio.i_format != VLC_CODEC_S16N) ||
-        (p_filter->fmt_out.audio.i_format != VLC_CODEC_S16N) )
-    {
-        /*msg_Err( p_this, "couldn't load mono filter" );*/
-        return VLC_EGENERIC;
-    }
+    p_filter->fmt_in.audio.i_format = VLC_CODEC_S16N;
+    p_filter->fmt_out.audio.i_format = VLC_CODEC_S16N;
 
     /* Allocate the memory needed to store the module's structure */
     p_sys = p_filter->p_sys = malloc( sizeof(filter_sys_t) );