diff options
author | wm4 <wm4@nowhere> | 2018-05-21 15:11:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:35 +0200 |
commit | fb22bf2317d4704895fca407507972031e932298 (patch) | |
tree | 8f7432be5ab95b0ea43d6be6b3d4c2866d72d014 /player/main.c | |
parent | 160e5c8377840ddc5cb80ab28a897c46f46851d2 (diff) | |
download | mpv-fb22bf2317d4704895fca407507972031e932298.tar.bz2 mpv-fb22bf2317d4704895fca407507972031e932298.tar.xz |
ao: use a local option struct
Instead of accessing MPOpts.
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/main.c b/player/main.c index ec5cdd69b1..5870574844 100644 --- a/player/main.c +++ b/player/main.c @@ -222,7 +222,9 @@ static bool handle_help_options(struct MPContext *mpctx) MP_INFO(mpctx, "\n"); return true; } - if (opts->audio_device && strcmp(opts->audio_device, "help") == 0) { + if (opts->ao_opts->audio_device && + strcmp(opts->ao_opts->audio_device, "help") == 0) + { ao_print_devices(mpctx->global, log); return true; } |