mirror of https://github.com/mpv-player/mpv
ao_openal: fix crash when no device parameter is passed
This commit is contained in:
parent
6bee9a8158
commit
1324eaece0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue