Commit 5b286b4d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

mono: Specify the expected format rather than failing

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit c7e24bbe924e18fbde1a9c7a6177410ad0816945)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b057027f
......@@ -347,13 +347,8 @@ static int OpenFilter( vlc_object_t *p_this )
return VLC_EGENERIC;
}
if( (p_filter->fmt_in.audio.i_format != p_filter->fmt_out.audio.i_format) ||
(p_filter->fmt_in.audio.i_format != VLC_CODEC_S16N) ||
(p_filter->fmt_out.audio.i_format != VLC_CODEC_S16N) )
{
/*msg_Err( p_this, "couldn't load mono filter" );*/
return VLC_EGENERIC;
}
p_filter->fmt_in.audio.i_format = VLC_CODEC_S16N;
p_filter->fmt_out.audio.i_format = VLC_CODEC_S16N;
/* Allocate the memory needed to store the module's structure */
p_sys = p_filter->p_sys = malloc( sizeof(filter_sys_t) );
......
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