summaryrefslogtreecommitdiffstats
path: root/mpvcore/playlist_parser.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-25 20:40:21 +0200
committerwm4 <wm4@nowhere>2013-08-26 10:09:45 +0200
commit8be9c49fcd8b23463199036eda5fc290ded6d078 (patch)
tree285f8a1cdcd89c8da9f8a50631a1af5176a783b1 /mpvcore/playlist_parser.h
parentddc973344685b8fee1d7b00e23ba93692d56d7c9 (diff)
downloadmpv-8be9c49fcd8b23463199036eda5fc290ded6d078.tar.bz2
mpv-8be9c49fcd8b23463199036eda5fc290ded6d078.tar.xz
core: add a playlist demuxer
Modeled after the old playlist_parser.c, but actually new code, and it works a bit differently. Demuxers (and sometimes streams) are the component that should be used to open files and to determine the file format. This was already done for subtitles, but playlists still use a separate code path.
Diffstat (limited to 'mpvcore/playlist_parser.h')
-rw-r--r--mpvcore/playlist_parser.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/mpvcore/playlist_parser.h b/mpvcore/playlist_parser.h
index 3ceb95c460..a541aa2cb4 100644
--- a/mpvcore/playlist_parser.h
+++ b/mpvcore/playlist_parser.h
@@ -21,14 +21,9 @@
#include <stdbool.h>
-struct stream;
+struct MPOpts;
struct playlist;
-// Parse the given stream as playlist. Append entries to pl. Return whether
-// there was an error when parsing.
-// deep = Parser depth. Some formats allow including other files,
-struct playlist *playlist_parse(struct stream* stream);
-struct playlist *playlist_probe_and_parse(struct stream* stream);
-struct playlist *playlist_parse_file(const char *file);
+struct playlist *playlist_parse_file(const char *file, struct MPOpts *opts);
#endif