Commit 2cc80fe6 authored by Bastien Nocera's avatar Bastien Nocera

plparser: Make sure that remote MP3s get treated as audio

Make sure that after verifying that a remote file advertised as
"audio/mpeg" is actually an MPEG stream, and not an M3U in disguise, we
pass it on to the caller as being unhandled for the purpose of playlist
parsing, rather than returning an error.

Closes: #19
parent 4f3ca838
......@@ -2075,6 +2075,9 @@ totem_pl_parser_parse_internal (TotemPlParser *parser,
mimetype = tmp;
DEBUG(file, g_print ("_get_mime_type_with_data for '%s' returned '%s' (was %s)\n", uri, mimetype, AUDIO_MPEG_TYPE));
if (strcmp (mimetype, AUDIO_MPEG_TYPE) == 0)
if (totem_pl_parser_mimetype_is_ignored (parser, mimetype) != FALSE)
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