summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c4
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;
}