From f2d6c8cb1cb51f05867f3c20b5c8b77213d64b80 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 30 Dec 2014 13:24:43 +0100 Subject: 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(+) (limited to 'demux') diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c index 6c06ccc6f5..516632af0f 100644 --- a/demux/demux_playlist.c +++ b/demux/demux_playlist.c @@ -179,6 +179,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); } } -- cgit v1.2.3