summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xine-engine/audio_out.c8
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;