summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-29 00:16:52 +0100
committerwm4 <wm4@nowhere>2019-11-29 12:14:43 +0100
commit1cb085a82e89ce4c9150871c910c75d9404d1e01 (patch)
treeab0fdbaa22568377a051aaef4740d5cf3656a543 /demux
parent5083db91ebff2fa469d94520bd3e8e535da74b8d (diff)
downloadmpv-1cb085a82e89ce4c9150871c910c75d9404d1e01.tar.bz2
mpv-1cb085a82e89ce4c9150871c910c75d9404d1e01.tar.xz
options: get rid of GLOBAL_CONFIG hack
Just an implementation detail that can be cleaned up now. Internally, m_config maintains a tree of m_sub_options structs, except for the root it was not defined explicitly. GLOBAL_CONFIG was a hack to get access to it anyway. Define it explicitly instead.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_mkv_timeline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_mkv_timeline.c b/demux/demux_mkv_timeline.c
index 60bdf3b673..5bbadc0781 100644
--- a/demux/demux_mkv_timeline.c
+++ b/demux/demux_mkv_timeline.c
@@ -515,7 +515,7 @@ void build_ordered_chapter_timeline(struct timeline *tl)
.global = tl->global,
.tl = tl,
.demuxer = demuxer,
- .opts = mp_get_config_group(ctx, tl->global, GLOBAL_CONFIG),
+ .opts = mp_get_config_group(ctx, tl->global, &mp_opt_root),
};
if (!ctx->opts->ordered_chapters || !demuxer->access_references) {