ao: fix crash after ao init failure (from recent 3a5fd15fa2)master
commitbdcf4ddf35801e73bb4eed985eee0cb084840e23
authorUoti Urpala <uau@mplayer2.org>
Sun, 15 May 2011 22:22:47 +0000 (16 01:22 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sun, 15 May 2011 22:32:26 +0000 (16 01:32 +0300)
treeab28ac403f9eb89e571a5d7035982a3fa58fc992
parentcbdb7e630526753efd5716bb67cf627393f3258c
ao: fix crash after ao init failure (from recent 3a5fd15fa2)

If opening an audio output driver using the old API failed the
"global_ao" variable was not set back to NULL as it should have been.
This caused an assert failure the next time there was an attempt to
open such an AO (either due to fallback to another AO after the
failure or after moving to another file). Fix.
libao2/audio_out.c