diff options
author | wm4 <wm4@nowhere> | 2020-01-04 19:47:36 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-01-04 19:47:36 +0100 |
commit | 5016a1e4a6118e1b91b1ee1ca5221ae09cf8753e (patch) | |
tree | b75e7bbd48dfeda9ebaa6358ee55bf8cdcaea1f8 /demux/demux.h | |
parent | 8150b8552b4ed1b4c33089bdb1f9159b181660ab (diff) | |
download | mpv-5016a1e4a6118e1b91b1ee1ca5221ae09cf8753e.tar.bz2 mpv-5016a1e4a6118e1b91b1ee1ca5221ae09cf8753e.tar.xz |
demux: add per-demuxer sub-options
Until now, they were all just added to options.c (e.g. demux_mkv_conf).
This adds a mechanism which can be used to add future options in a
(very) slightly more elegant way.
Diffstat (limited to 'demux/demux.h')
-rw-r--r-- | demux/demux.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h index 4c15e074c2..c94f690da0 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -98,6 +98,9 @@ typedef struct demuxer_desc { const char *name; // Demuxer name, used with -demuxer switch const char *desc; // Displayed to user + // If non-NULL, these are added to the global option list. + const struct m_sub_options *options; + // Return 0 on success, otherwise -1 int (*open)(struct demuxer *demuxer, enum demux_check check); // The following functions are all optional |