diff options
author | wm4 <wm4@nowhere> | 2014-12-30 13:24:43 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-30 13:24:43 +0100 |
commit | f2d6c8cb1cb51f05867f3c20b5c8b77213d64b80 (patch) | |
tree | b351de7fe75cf0cd1f49962e1665763f0b699479 /demux | |
parent | a5832ba0194d278cb0813daf8b4af564e6848a61 (diff) | |
download | mpv-f2d6c8cb1cb51f05867f3c20b5c8b77213d64b80.tar.bz2 mpv-f2d6c8cb1cb51f05867f3c20b5c8b77213d64b80.tar.xz |
demux_playlist: unquote entries in pls playlists
I guess these parsers still have a way to go...
Diffstat (limited to 'demux')
-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 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); } } |