diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2016-01-15 18:29:06 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2016-01-18 20:46:22 -0800 |
commit | cd5eb1bb199253747800483203976200e7775617 (patch) | |
tree | 4dfba1436eed6b1e51e0b8e3ea63258fae21e047 /audio/out | |
parent | 48c9101a5b18b5c57e700dc48615fbdfa843803f (diff) |
ao_openal: wipe out global context on init error
Previously this would break all further attempts to init the driver after one
had failed.
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_openal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_openal.c b/audio/out/ao_openal.c index c6c924b244..72e8799e00 100644 --- a/audio/out/ao_openal.c +++ b/audio/out/ao_openal.c @@ -236,6 +236,7 @@ static int init(struct ao *ao) return 0; err_out: + ao_data = NULL; return -1; } |