summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-01-15 18:29:06 -0800
committerKevin Mitchell <kevmitch@gmail.com>2016-01-18 20:46:22 -0800
commitcd5eb1bb199253747800483203976200e7775617 (patch)
tree4dfba1436eed6b1e51e0b8e3ea63258fae21e047 /audio
parent48c9101a5b18b5c57e700dc48615fbdfa843803f (diff)
downloadmpv-cd5eb1bb199253747800483203976200e7775617.tar.bz2
mpv-cd5eb1bb199253747800483203976200e7775617.tar.xz
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')
-rw-r--r--audio/out/ao_openal.c1
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;
}