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 /demux/demux.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 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demux/demux.c b/demux/demux.c index 348d665d49..5fa0528d3d 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -2827,7 +2827,7 @@ done: return out_pkt; } -void demuxer_help(struct mp_log *log) +int demuxer_help(struct mp_log *log, const m_option_t *opt, struct bstr name) { int i; @@ -2837,6 +2837,9 @@ void demuxer_help(struct mp_log *log) mp_info(log, "%10s %s\n", demuxer_list[i]->name, demuxer_list[i]->desc); } + mp_info(log, "\n"); + + return M_OPT_EXIT; } static const char *d_level(enum demux_check level) |