summaryrefslogtreecommitdiffstats
path: root/common/playlist_parser.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_parser.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_parser.h')
-rw-r--r--common/playlist_parser.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/common/playlist_parser.h b/common/playlist_parser.h
deleted file mode 100644
index 9d139d90f3..0000000000
--- a/common/playlist_parser.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * This file is part of MPlayer.
- *
- * MPlayer is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * MPlayer is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with MPlayer; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifndef MPLAYER_PLAYLISTPARSER_H
-#define MPLAYER_PLAYLISTPARSER_H
-
-struct mpv_global;
-struct playlist;
-
-struct playlist *playlist_parse_file(const char *file, struct mpv_global *global);
-
-#endif