Skip to content

Commit

Permalink
demux_playlist: fix negated condition
Browse files Browse the repository at this point in the history
Fuck.
  • Loading branch information
wm4 committed Dec 6, 2014
1 parent 0641c7b commit f9799ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demux/demux_playlist.c
Expand Up @@ -99,7 +99,7 @@ static int parse_m3u(struct pl_parser *p)
if (p->check_level == DEMUX_CHECK_UNSAFE) {
char *ext = mp_splitext(p->real_stream->url, NULL);
bstr data = stream_peek(p->real_stream, PROBE_SIZE);
if (ext && strcmp(ext, "m3u") && data.len > 10 && maybe_text(data))
if (ext && !strcmp(ext, "m3u") && data.len > 10 && maybe_text(data))
goto ok;
}
return -1;
Expand Down

0 comments on commit f9799ff

Please sign in to comment.