Commit 2289c84d authored by Jean-Paul Saman's avatar Jean-Paul Saman

audio filters: these do not support fi32

parent dfa08f13
......@@ -356,6 +356,9 @@ static int Create( vlc_object_t *p_this )
aout_filter_t * p_filter = (aout_filter_t *)p_this;
bool b_fit = true;
if ( p_filter->input.i_format == VLC_FOURCC('f','i','3','2') )
return VLC_EGENERIC;
/* Activate this filter only with stereo devices */
if( p_filter->output.i_physical_channels
!= (AOUT_CHAN_LEFT|AOUT_CHAN_RIGHT) )
......
......@@ -136,8 +136,6 @@ static int PreampCallback( vlc_object_t *, char const *,
static int BandsCallback ( vlc_object_t *, char const *,
vlc_value_t, vlc_value_t, void * );
/*****************************************************************************
* Open:
*****************************************************************************/
......@@ -147,6 +145,9 @@ static int Open( vlc_object_t *p_this )
aout_filter_sys_t *p_sys;
bool b_fit = true;
if ( p_filter->input.i_format == VLC_FOURCC('f','i','3','2') )
return VLC_EGENERIC;
if( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' ) ||
p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
{
......@@ -603,4 +604,3 @@ static int BandsCallback( vlc_object_t *p_this, char const *psz_cmd,
}
return VLC_SUCCESS;
}
......@@ -103,6 +103,9 @@ static int Open( vlc_object_t *p_this )
int i_channels;
aout_filter_sys_t *p_sys;
if ( p_filter->input.i_format == VLC_FOURCC('f','i','3','2') )
return VLC_EGENERIC;
if( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' ) ||
p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
{
......
......@@ -97,9 +97,6 @@ struct aout_filter_sys_t
};
/*****************************************************************************
* Open:
*****************************************************************************/
......@@ -110,6 +107,9 @@ static int Open( vlc_object_t *p_this )
bool b_fit = true;
int i_samplerate;
if ( p_filter->input.i_format == VLC_FOURCC('f','i','3','2') )
return VLC_EGENERIC;
if( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' ) ||
p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
{
......
......@@ -392,6 +392,9 @@ static int Open( vlc_object_t *p_this )
aout_filter_sys_t *p_sys;
bool b_fit = true;
if ( p_filter->input.i_format == VLC_FOURCC('f','i','3','2') )
return VLC_EGENERIC;
if( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' ) ||
p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
{
......
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