summaryrefslogtreecommitdiffstats
path: root/demux/demux.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-17 23:55:45 +0100
committerwm4 <wm4@nowhere>2015-02-17 23:58:18 +0100
commitfa9b587426d7bd350d92afdb440c396336b2ecfd (patch)
tree23f8e85f54e6f50a0624b649e221dde19be3af34 /demux/demux.h
parent082371a1603eaaa6c5c9f4bd57f9e77ff027ee15 (diff)
downloadmpv-fa9b587426d7bd350d92afdb440c396336b2ecfd.tar.bz2
mpv-fa9b587426d7bd350d92afdb440c396336b2ecfd.tar.xz
demux, matroska: remove demuxer type field
The Matroska timeline code was the only thing which still used the demuxer.type field. This field explicitly identifies a demuxer implementation. The purpose of the Matroska timeline code was to reject files that are not Matroska. But it already forces the Matroska format, meaning loading will explicitly only use the Matroska demuxer. If the demuxer can't open the file, no other demuxer will be tried, and thus checking the field is redundant. The change in demux_mkv_timeline.c removes the if condition, and unindents the if body.
Diffstat (limited to 'demux/demux.h')
-rw-r--r--demux/demux.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/demux/demux.h b/demux/demux.h
index 14154cef0c..cd897be7e2 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -36,11 +36,6 @@
#define MAX_PACKS 16000
#define MAX_PACK_BYTES (400 * 1024 * 1024)
-enum demuxer_type {
- DEMUXER_TYPE_GENERIC = 0,
- DEMUXER_TYPE_MATROSKA,
-};
-
// DEMUXER control commands/answers
#define DEMUXER_CTRL_NOTIMPL -1
#define DEMUXER_CTRL_DONTKNOW 0
@@ -111,8 +106,6 @@ typedef struct demuxer_desc {
const char *name; // Demuxer name, used with -demuxer switch
const char *desc; // Displayed to user
- enum demuxer_type type; // optional
-
// Return 0 on success, otherwise -1
int (*open)(struct demuxer *demuxer, enum demux_check check);
// The following functions are all optional
@@ -185,7 +178,6 @@ typedef struct demuxer {
const char *filetype; // format name when not identified by demuxer (libavformat)
int64_t filepos; // input stream current pos.
char *filename; // same as stream->url
- enum demuxer_type type;
bool seekable;
bool partially_seekable; // implies seekable=true
double start_time;