[beast] If errors occur on write, retrigger write handle (not read handle).
- From: Stefan Westerfeld <stw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] If errors occur on write, retrigger write handle (not read handle).
- Date: Thu, 1 Jul 2010 18:36:28 +0000 (UTC)
commit 4a860812d6ba37f8cf9e52f02249ae0deccaceba
Author: Stefan Westerfeld <stefan space twc de>
Date: Sat May 29 14:28:43 2010 +0200
If errors occur on write, retrigger write handle (not read handle).
drivers/bse-alsa/bsepcmdevice-alsa.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/drivers/bse-alsa/bsepcmdevice-alsa.c b/drivers/bse-alsa/bsepcmdevice-alsa.c
index 71f0a70..fb4814c 100644
--- a/drivers/bse-alsa/bsepcmdevice-alsa.c
+++ b/drivers/bse-alsa/bsepcmdevice-alsa.c
@@ -516,11 +516,11 @@ alsa_device_write (BsePcmHandle *handle,
gssize n = 0; /* in frames */
do
{
- if (n < 0) /* errors during read, could be underrun (-EPIPE) */
+ if (n < 0) /* errors during write, could be overrun (-EPIPE) */
{
DEBUG ("ALSA: write() error: %s", snd_strerror (n));
snd_lib_error_set_handler (silent_error_handler);
- snd_pcm_prepare (alsa->read_handle); /* force retrigger */
+ snd_pcm_prepare (alsa->write_handle); /* force retrigger */
snd_lib_error_set_handler (NULL);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]