From fd0f54c59fd0e5c060a04783261035eaa9771553 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 17 Feb 2006 09:24:56 +0000 Subject: [PATCH] ext/alsa/gstalsasink.c: Also release lock when we get an error in _reset(); fix an error message. Original commit message from CVS: * ext/alsa/gstalsasink.c: (gst_alsasink_open), (gst_alsasink_reset): Also release lock when we get an error in _reset(); fix an error message. --- ChangeLog | 7 +++++++ ext/alsa/gstalsasink.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4c73112566..c5fb58ab3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-17 Wim Taymans + + * ext/alsa/gstalsasink.c: (gst_alsasink_open), + (gst_alsasink_reset): + Also release lock when we get an error in _reset(); + fix an error message. + 2006-02-16 Tim-Philipp Müller * ext/alsa/gstalsasink.c: (gst_alsasink_class_init), diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c index 780dab620f..4cb1920399 100644 --- a/ext/alsa/gstalsasink.c +++ b/ext/alsa/gstalsasink.c @@ -713,7 +713,7 @@ gst_alsasink_open (GstAudioSink * asink) open_error: { if (err == -EBUSY) { - GST_ELEMENT_ERROR (alsa, RESOURCE, BUSY, (NULL), (NULL)); + GST_ELEMENT_ERROR (alsa, RESOURCE, BUSY, (NULL), ("Device is busy")); } else { GST_ELEMENT_ERROR (alsa, RESOURCE, OPEN_WRITE, (NULL), ("Playback open error: %s", snd_strerror (err))); @@ -941,12 +941,14 @@ drop_error: { GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, ("alsa-reset: pcm drop error: %s", snd_strerror (err)), (NULL)); + GST_ALSA_UNLOCK (asink); return; } prepare_error: { GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, ("alsa-reset: pcm prepare error: %s", snd_strerror (err)), (NULL)); + GST_ALSA_UNLOCK (asink); return; } }