1
0
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:
Kevin Mitchell 2016-01-15 18:29:06 -08:00
parent 48c9101a5b
commit cd5eb1bb19

View File

@ -236,6 +236,7 @@ static int init(struct ao *ao)
return 0;
err_out:
ao_data = NULL;
return -1;
}