diff options
author | wm4 <wm4@nowhere> | 2018-05-21 15:21:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:35 +0200 |
commit | fe6b2f9103450679a07da44bdad31707b597cd20 (patch) | |
tree | b9a5aa109582137a91b522b074a413dfce70967c /demux/demux_mkv_timeline.c | |
parent | fb22bf2317d4704895fca407507972031e932298 (diff) | |
download | mpv-fe6b2f9103450679a07da44bdad31707b597cd20.tar.bz2 mpv-fe6b2f9103450679a07da44bdad31707b597cd20.tar.xz |
m_config: add a special define to access main config
Passing NULL to mp_get_config_group() returns the main option struct.
This is just a dumb hack to deal with inconsistencies caused by legacy
things (as I'll claim), and will probably be changed in the future. So
before littering the whole code base with hard to find NULL parameters,
require using callers an easy to find separate define.
Diffstat (limited to 'demux/demux_mkv_timeline.c')
-rw-r--r-- | demux/demux_mkv_timeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_mkv_timeline.c b/demux/demux_mkv_timeline.c index 2a02a35dc5..32eab2ca8f 100644 --- a/demux/demux_mkv_timeline.c +++ b/demux/demux_mkv_timeline.c @@ -517,7 +517,7 @@ void build_ordered_chapter_timeline(struct timeline *tl) .global = tl->global, .tl = tl, .demuxer = demuxer, - .opts = mp_get_config_group(ctx, tl->global, NULL), + .opts = mp_get_config_group(ctx, tl->global, GLOBAL_CONFIG), }; if (!ctx->opts->ordered_chapters || !demuxer->access_references) { |