ext/alsa/gstalsasink.c: Ignore errors in reset, these are not fatal. They also grab the element lock which is already...

Original commit message from CVS:
* ext/alsa/gstalsasink.c: (gst_alsasink_reset):
Ignore errors in reset, these are not fatal. They also grab the element
lock which is already taking when this function is called. Fixes
#405451.
This commit is contained in:
Wim Taymans 2007-02-15 11:59:41 +00:00
parent c6ced31578
commit 70e52caf04
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2007-02-15 Wim Taymans <wim@fluendo.com>
* ext/alsa/gstalsasink.c: (gst_alsasink_reset):
Ignore errors in reset, these are not fatal. They also grab the element
lock which is already taking when this function is called. Fixes
#405451.
2007-02-13 Stefan Kost <ensonic@users.sf.net>
* configure.ac:

View file

@ -851,15 +851,15 @@ gst_alsasink_reset (GstAudioSink * asink)
/* ERRORS */
drop_error:
{
GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS,
("alsa-reset: pcm drop error: %s", snd_strerror (err)), (NULL));
GST_ERROR_OBJECT (alsa, "alsa-reset: pcm drop error: %s",
snd_strerror (err));
GST_ALSA_UNLOCK (asink);
return;
}
prepare_error:
{
GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS,
("alsa-reset: pcm prepare error: %s", snd_strerror (err)), (NULL));
GST_ERROR_OBJECT (alsa, "alsa-reset: pcm prepare error: %s",
snd_strerror (err));
GST_ALSA_UNLOCK (asink);
return;
}