summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c
index c96ff51ca9..a5a287e8bd 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -105,6 +105,8 @@ struct demux_opts {
#define MAX_BYTES MPMIN(INT64_MAX, SIZE_MAX / 2)
+static bool get_demux_sub_opts(int index, const struct m_sub_options **sub);
+
const struct m_sub_options demux_conf = {
.opts = (const struct m_option[]){
OPT_CHOICE("cache", enable_cache, 0,
@@ -151,6 +153,7 @@ const struct m_sub_options demux_conf = {
},
.meta_cp = "utf-8",
},
+ .get_sub_options = get_demux_sub_opts,
};
struct demux_internal {
@@ -4498,3 +4501,11 @@ static void demux_convert_tags_charset(struct demuxer *demuxer)
talloc_free(data);
}
+
+static bool get_demux_sub_opts(int index, const struct m_sub_options **sub)
+{
+ if (!demuxer_list[index])
+ return false;
+ *sub = demuxer_list[index]->options;
+ return true;
+}