Commit 1a9a0bd5 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: flac: probe by mime type

refs #10222
parent aacada0b
...@@ -109,7 +109,16 @@ static int Open( vlc_object_t * p_this ) ...@@ -109,7 +109,16 @@ 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_peek[0]!='f' || p_peek[1]!='L' || p_peek[2]!='a' || p_peek[3]!='C' )
{ {
if( !p_demux->b_force ) return VLC_EGENERIC; 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 );
}
/* User forced */ /* User forced */
msg_Err( p_demux, "this doesn't look like a flac stream, " 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