From a82f2e27920a0df81cd67c0a7e35cddfaaf664bd Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 30 Dec 2014 13:24:43 +0100 Subject: [PATCH] demux_playlist: unquote entries in pls playlists I guess these parsers still have a way to go... --- demux/demux_playlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c index a15aecad11..d229461de9 100644 --- a/demux/demux_playlist.c +++ b/demux/demux_playlist.c @@ -158,6 +158,9 @@ static int parse_pls(struct pl_parser *p) if (bstr_split_tok(line, "=", &key, &value) && bstr_case_startswith(key, bstr0("File"))) { + value = bstr_strip(value); + if (bstr_startswith0(value, "\"") && bstr_endswith0(value, "\"")) + value = bstr_splice(value, 1, -1); pl_add(p, value); } }