ext/alsa/gstalsa.c: only restart audio when we indeed have an xrun to fix repeated xruns. Fix suggested by Giuliano P...

Original commit message from CVS:
* ext/alsa/gstalsa.c: (gst_alsa_xrun_recovery):
only restart audio when we indeed have an xrun to fix repeated
xruns. Fix suggested by Giuliano Pochini.
This commit is contained in:
Benjamin Otte 2004-07-04 16:02:16 +00:00
parent a0dd75c692
commit 1ca7052a58
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2004-07-04 Benjamin Otte <otte@gnome.org>
* ext/alsa/gstalsa.c: (gst_alsa_xrun_recovery):
only restart audio when we indeed have an xrun to fix repeated
xruns. Fix suggested by Giuliano Pochini.
2004-07-03 David Schleef <ds@schleef.org>
* ext/alsa/gstalsaplugin.c: (gst_alsa_error_wrapper): Disable

View file

@ -1264,11 +1264,11 @@ gst_alsa_xrun_recovery (GstAlsa * this)
this->period_count *= 2;
}
}
}
if (!(gst_alsa_stop_audio (this) && gst_alsa_start_audio (this))) {
GST_ELEMENT_ERROR (this, RESOURCE, FAILED, (NULL),
("Error restarting audio after xrun"));
return FALSE;
if (!(gst_alsa_stop_audio (this) && gst_alsa_start_audio (this))) {
GST_ELEMENT_ERROR (this, RESOURCE, FAILED, (NULL),
("Error restarting audio after xrun"));
return FALSE;
}
}
return TRUE;