vsxu: force FL32 input
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 18 Apr 2013 19:36:37 +0000 (22:36 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 18 Apr 2013 19:36:37 +0000 (22:36 +0300)
modules/visualization/vsxu.cpp

index fc2a150..184f7d9 100644 (file)
@@ -112,13 +112,6 @@ static int Open( vlc_object_t * p_this )
     filter_t     *p_filter = (filter_t *)p_this;
     filter_sys_t *p_sys;
 
-    /* Test the audio format */
-    if( p_filter->fmt_in.audio.i_format != VLC_CODEC_FL32 )
-    {
-        msg_Warn( p_filter, "bad input format" );
-        return VLC_EGENERIC;
-    }
-
     p_sys = p_filter->p_sys = (filter_sys_t*)malloc( sizeof( *p_sys ) );
     if( unlikely( !p_sys ) )
     {
@@ -149,6 +142,7 @@ static int Open( vlc_object_t * p_this )
         goto error;
     }
 
+    p_filter->fmt_in.audio.i_format = VLC_CODEC_FL32;
     p_filter->fmt_out.audio = p_filter->fmt_in.audio;
     p_filter->pf_audio_filter = DoWork;