diff options
author | Philip Langdale <philipl@overt.org> | 2021-03-06 16:08:17 -0800 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2021-03-28 19:46:32 +0300 |
commit | c8f474e3e5005373796f2a9fea77aa57ffcd7637 (patch) | |
tree | a834ea488c4b0bc2c60d620fbbd2baca3c22d213 /player/main.c | |
parent | 3f006eced47b35b7d752fdc19c22a7f39f970975 (diff) | |
download | mpv-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 'player/main.c')
-rw-r--r-- | player/main.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/player/main.c b/player/main.c index 71f5d14b53..58be00b6d8 100644 --- a/player/main.c +++ b/player/main.c @@ -54,7 +54,6 @@ #include "input/input.h" #include "audio/out/ao.h" -#include "demux/demux.h" #include "misc/thread_tools.h" #include "sub/osd.h" #include "test/tests.h" @@ -202,13 +201,6 @@ static bool handle_help_options(struct MPContext *mpctx) { struct MPOpts *opts = mpctx->opts; struct mp_log *log = mpctx->log; - if ((opts->demuxer_name && strcmp(opts->demuxer_name, "help") == 0) || - (opts->audio_demuxer_name && strcmp(opts->audio_demuxer_name, "help") == 0) || - (opts->sub_demuxer_name && strcmp(opts->sub_demuxer_name, "help") == 0)) { - demuxer_help(log); - MP_INFO(mpctx, "\n"); - return true; - } if (opts->ao_opts->audio_device && strcmp(opts->ao_opts->audio_device, "help") == 0) { |