demux_playlist: fix negated condition

Fuck.
This commit is contained in:
wm4 2014-12-06 01:50:54 +01:00
parent 0641c7b783
commit f9799ff342
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ static int parse_m3u(struct pl_parser *p)
if (p->check_level == DEMUX_CHECK_UNSAFE) { if (p->check_level == DEMUX_CHECK_UNSAFE) {
char *ext = mp_splitext(p->real_stream->url, NULL); char *ext = mp_splitext(p->real_stream->url, NULL);
bstr data = stream_peek(p->real_stream, PROBE_SIZE); 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; goto ok;
} }
return -1; return -1;