summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2021-03-06 16:08:17 -0800
committerJan Ekström <jeebjp@gmail.com>2021-03-28 19:46:32 +0300
commitc8f474e3e5005373796f2a9fea77aa57ffcd7637 (patch)
treea834ea488c4b0bc2c60d620fbbd2baca3c22d213 /options
parent3f006eced47b35b7d752fdc19c22a7f39f970975 (diff)
downloadmpv-c8f474e3e5005373796f2a9fea77aa57ffcd7637.tar.bz2
mpv-c8f474e3e5005373796f2a9fea77aa57ffcd7637.tar.xz
demux: Move demuxer help to new standard mechanism
Previously, demux help was handled as a special case in main.c and this is no longer necessary.
Diffstat (limited to 'options')
-rw-r--r--options/options.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/options/options.c b/options/options.c
index 8aadc87ab9..2a168da4e5 100644
--- a/options/options.c
+++ b/options/options.c
@@ -46,6 +46,7 @@
#include "player/core.h"
#include "player/command.h"
#include "stream/stream.h"
+#include "demux/demux.h"
#if HAVE_DRM
#include "video/out/drm_common.h"
@@ -514,9 +515,9 @@ static const m_option_t mp_opts[] = {
#endif
// demuxer.c - select audio/sub file/demuxer
- {"demuxer", OPT_STRING(demuxer_name)},
- {"audio-demuxer", OPT_STRING(audio_demuxer_name)},
- {"sub-demuxer", OPT_STRING(sub_demuxer_name)},
+ {"demuxer", OPT_STRING(demuxer_name), .help = demuxer_help},
+ {"audio-demuxer", OPT_STRING(audio_demuxer_name), .help = demuxer_help},
+ {"sub-demuxer", OPT_STRING(sub_demuxer_name), .help = demuxer_help},
{"demuxer-thread", OPT_FLAG(demuxer_thread)},
{"demuxer-termination-timeout", OPT_DOUBLE(demux_termination_timeout)},
{"demuxer-cache-wait", OPT_FLAG(demuxer_cache_wait)},