mirror of
https://github.com/mpv-player/mpv
synced 2025-01-27 10:03:32 +00:00
ao_openal: wipe out global context on init error
Previously this would break all further attempts to init the driver after one had failed.
This commit is contained in:
parent
48c9101a5b
commit
cd5eb1bb19
@ -236,6 +236,7 @@ static int init(struct ao *ao)
|
||||
return 0;
|
||||
|
||||
err_out:
|
||||
ao_data = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user