[vlc-commits] vsxu: force FL32 input

Rémi Denis-Courmont git at videolan.org
Thu Apr 18 21:36:49 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 18 22:36:37 2013 +0300| [045a89d625f3ffc75251a2a619a65cf0ceb58774] | committer: Rémi Denis-Courmont

vsxu: force FL32 input

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=045a89d625f3ffc75251a2a619a65cf0ceb58774
---

 modules/visualization/vsxu.cpp |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/visualization/vsxu.cpp b/modules/visualization/vsxu.cpp
index fc2a150..184f7d9 100644
--- a/modules/visualization/vsxu.cpp
+++ b/modules/visualization/vsxu.cpp
@@ -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;
 



More information about the vlc-commits mailing list