[vlc-commits] goom: force FL32 input

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


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 18 22:35:53 2013 +0300| [5d0401095acab2aceb50bc6708e547e2854bd97a] | committer: Rémi Denis-Courmont

goom: force FL32 input

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

 modules/visualization/goom.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c
index aab6c58..18f8bac 100644
--- a/modules/visualization/goom.c
+++ b/modules/visualization/goom.c
@@ -119,12 +119,6 @@ static int Open( vlc_object_t *p_this )
     goom_thread_t  *p_thread;
     video_format_t fmt;
 
-    if( p_filter->fmt_in.audio.i_format != VLC_CODEC_FL32 )
-    {
-        msg_Warn( p_filter, "bad input format" );
-        return VLC_EGENERIC;
-    }
-
     /* Allocate structure */
     p_sys = p_filter->p_sys = malloc( sizeof( filter_sys_t ) );
 
@@ -174,6 +168,7 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
+    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;
     return VLC_SUCCESS;



More information about the vlc-commits mailing list