Commit 5d909d68 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

projectM: force FL32 input

parent 5d040109
...@@ -169,13 +169,6 @@ static int Open( vlc_object_t * p_this ) ...@@ -169,13 +169,6 @@ static int Open( vlc_object_t * p_this )
filter_t *p_filter = (filter_t *)p_this; filter_t *p_filter = (filter_t *)p_this;
filter_sys_t *p_sys; 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 ) ); p_sys = p_filter->p_sys = (filter_sys_t*)malloc( sizeof( *p_sys ) );
if( !p_sys ) if( !p_sys )
return VLC_ENOMEM; return VLC_ENOMEM;
...@@ -203,6 +196,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -203,6 +196,7 @@ static int Open( vlc_object_t * p_this )
goto error; goto error;
} }
p_filter->fmt_in.audio.i_format = VLC_CODEC_FL32;
p_filter->fmt_out.audio = p_filter->fmt_in.audio; p_filter->fmt_out.audio = p_filter->fmt_in.audio;
p_filter->pf_audio_filter = DoWork; p_filter->pf_audio_filter = DoWork;
return VLC_SUCCESS; return VLC_SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment