diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-10-06 12:43:08 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-10-06 12:43:08 +0000 |
commit | 1df4118833fdf684b40a4eb9d30507c402dffdb8 (patch) | |
tree | 931407f128bfb9720c0e534ab29794596a660cf5 | |
parent | 080e1df29ff3bf7ee5becdff9619f45362ca0bbc (diff) | |
download | xine-lib-1df4118833fdf684b40a4eb9d30507c402dffdb8.tar.gz xine-lib-1df4118833fdf684b40a4eb9d30507c402dffdb8.tar.bz2 |
from the AO_PROP_CLOSE_DEVICE case branch, ret would be returned uninitialized
CVS patchset: 5451
CVS date: 2003/10/06 12:43:08
-rw-r--r-- | src/xine-engine/audio_out.c | 8 |
1 files 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 <andy@alsaplayer.org> @@ -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; |