From 1df4118833fdf684b40a4eb9d30507c402dffdb8 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Mon, 6 Oct 2003 12:43:08 +0000 Subject: from the AO_PROP_CLOSE_DEVICE case branch, ret would be returned uninitialized CVS patchset: 5451 CVS date: 2003/10/06 12:43:08 --- src/xine-engine/audio_out.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index c7b973cb3..b60112d49 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.146 2003/10/03 17:39:43 jcdutton Exp $ + * $Id: audio_out.c,v 1.147 2003/10/06 12:43:08 mroi Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -1542,7 +1542,7 @@ static int ao_get_property (xine_audio_port_t *this_gen, int property) { static int ao_set_property (xine_audio_port_t *this_gen, int property, int value) { aos_t *this = (aos_t *) this_gen; - int ret; + int ret = 0; switch (property) { case AO_PROP_COMPRESSOR: @@ -1637,8 +1637,8 @@ static int ao_set_property (xine_audio_port_t *this_gen, int property, int value if (!this->grab_only) { /* Let the sound driver lock it's own mixer */ ret = this->driver->set_property(this->driver, property, value); - } else - ret = 0; + pthread_mutex_unlock( &this->driver_lock ); + } } return ret; -- cgit v1.2.3