Commit 0ac52736 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

flac: use demux_IsContentType()

parent e0031b4e
......@@ -119,16 +119,9 @@ static int Open( vlc_object_t * p_this )
if( p_peek[0]!='f' || p_peek[1]!='L' || p_peek[2]!='a' || p_peek[3]!='C' )
{
if( !p_demux->b_force )
{
char *psz_mime = stream_ContentType( p_demux->s );
if ( !psz_mime || strcmp( psz_mime, "audio/flac" ) )
{
free( psz_mime );
return VLC_EGENERIC;
}
free( psz_mime );
}
if( !p_demux->b_force
&& !demux_IsContentType( p_demux, "audio/flac" ) )
return VLC_EGENERIC;
/* User forced */
msg_Err( p_demux, "this doesn't look like a flac stream, "
......
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