diff options
author | wm4 <wm4@nowhere> | 2014-12-30 13:24:43 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:06 +0900 |
commit | a82f2e27920a0df81cd67c0a7e35cddfaaf664bd (patch) | |
tree | d65cdb102bbcd74568714b7d5570035e6fbd9273 | |
parent | e0231926df3d09a757537856abb9be403764c370 (diff) | |
download | mpv-a82f2e27920a0df81cd67c0a7e35cddfaaf664bd.tar.bz2 mpv-a82f2e27920a0df81cd67c0a7e35cddfaaf664bd.tar.xz |
demux_playlist: unquote entries in pls playlists
I guess these parsers still have a way to go...
-rw-r--r-- | demux/demux_playlist.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } } |