summaryrefslogtreecommitdiff
path: root/src/audio_out/audio_pulse_out.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-02-29 14:59:25 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-02-29 14:59:25 +0000
commitfc9ff87cf9b7753a1622339b4dd3e4ea286f05e7 (patch)
tree71c6249433ccb247678affe99d44137a6ec204e8 /src/audio_out/audio_pulse_out.c
parent4a2a24dc98003e59ea9d7da982fefc81a82890d2 (diff)
parent2e5c9c79a47efe0df60aaea17569ea9f32d347a6 (diff)
downloadxine-lib-fc9ff87cf9b7753a1622339b4dd3e4ea286f05e7.tar.gz
xine-lib-fc9ff87cf9b7753a1622339b4dd3e4ea286f05e7.tar.bz2
Merge from 1.1.
--HG-- rename : src/combined/demux_wavpack.c => src/combined/wavpack_demuxer.c
Diffstat (limited to 'src/audio_out/audio_pulse_out.c')
-rw-r--r--src/audio_out/audio_pulse_out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/audio_out/audio_pulse_out.c b/src/audio_out/audio_pulse_out.c
index b4ec0b156..0235a4321 100644
--- a/src/audio_out/audio_pulse_out.c
+++ b/src/audio_out/audio_pulse_out.c
@@ -246,7 +246,7 @@ static int ao_pulse_open(ao_driver_t *this_gen,
pa_threaded_mainloop_lock(this->pa_class->mainloop);
ret = pa_context_connect(this->pa_class->context, this->host, 1, NULL);
if ( ret < 0 )
- goto fail;
+ goto fail_unlock;
pa_context_set_state_callback(this->pa_class->context, __xine_pa_context_status_callback, this);
@@ -289,8 +289,9 @@ static int ao_pulse_open(ao_driver_t *this_gen,
return this->sample_rate;
-fail:
+ fail_unlock:
pa_threaded_mainloop_unlock(this->pa_class->mainloop);
+ fail:
this_gen->close(this_gen);
return 0;
}