diff options
author | wm4 <wm4@mplayer2.org> | 2012-04-25 02:20:37 +0200 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-04-25 02:20:37 +0200 |
commit | 1324eaece08d84fbe3eb539642dba99b74dd1c07 (patch) | |
tree | 5e93d7e09b219a13af6465845bd9b7cdf2e6506b | |
parent | 6bee9a8158eae01baa8f6db3e328e06bb2124e0b (diff) | |
download | mpv-1324eaece08d84fbe3eb539642dba99b74dd1c07.tar.bz2 mpv-1324eaece08d84fbe3eb539642dba99b74dd1c07.tar.xz |
ao_openal: fix crash when no device parameter is passed
-rw-r--r-- | libao2/ao_openal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libao2/ao_openal.c b/libao2/ao_openal.c index 263aed34fb..0e04f2cc81 100644 --- a/libao2/ao_openal.c +++ b/libao2/ao_openal.c @@ -133,7 +133,7 @@ static int init(int rate, int channels, int format, int flags) { print_help(); return 0; } - if (strcmp(device, "help") == 0) { + if (device && strcmp(device, "help") == 0) { list_devices(); goto err_out; } |