summaryrefslogtreecommitdiffstats
path: root/common/playlist.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-13 15:39:48 +0200
committerwm4 <wm4@nowhere>2014-04-13 15:40:05 +0200
commit47972a0077892636fb922a3600d66779636b7ee7 (patch)
tree8cee937efe6d36c99f8a0faacb986c1a3236dce3 /common/playlist.h
parent586b02e7bd3499c8ef300fee7b723fbed19526dd (diff)
downloadmpv-47972a0077892636fb922a3600d66779636b7ee7.tar.bz2
mpv-47972a0077892636fb922a3600d66779636b7ee7.tar.xz
player: remove ASX, SMIL and NSC playlist parsers
These playlist parsers are all what's left from the old mplayer playlist parsing code. All of it is old code that does little error checking; the type of C string parsing code that gives you nightmare. Some playlist parsers have been rewritten and are located in demux_playlist.c. The removed formats were not reimplemented. ASX and SMIL use XML, and since we don't want to depend on a full blown XML parser, this is not so easy. Possibly these formats could be supported by writing a very primitive XML-like lexer, which would lead to success with most real world files, but I haven't attempted that. As for NSC, I couldn't find any URL that worked with MPlayer, and in general this formats seems to be more than dead. Move playlist_parse_file() to playlist.c. It's pretty small now, and basically just opens a stream and a demuxer. No use keeping playlist_parser.c just for this.
Diffstat (limited to 'common/playlist.h')
-rw-r--r--common/playlist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/playlist.h b/common/playlist.h
index f383a85fea..c55a3a21c8 100644
--- a/common/playlist.h
+++ b/common/playlist.h
@@ -79,4 +79,7 @@ int playlist_entry_to_index(struct playlist *pl, struct playlist_entry *e);
int playlist_entry_count(struct playlist *pl);
struct playlist_entry *playlist_entry_from_index(struct playlist *pl, int index);
+struct mpv_global;
+struct playlist *playlist_parse_file(const char *file, struct mpv_global *global);
+
#endif