mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
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:
parent
a0dd75c692
commit
1ca7052a58
2 changed files with 11 additions and 5 deletions
|
@ -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>
|
2004-07-03 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* ext/alsa/gstalsaplugin.c: (gst_alsa_error_wrapper): Disable
|
* ext/alsa/gstalsaplugin.c: (gst_alsa_error_wrapper): Disable
|
||||||
|
|
|
@ -1264,11 +1264,11 @@ gst_alsa_xrun_recovery (GstAlsa * this)
|
||||||
this->period_count *= 2;
|
this->period_count *= 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if (!(gst_alsa_stop_audio (this) && gst_alsa_start_audio (this))) {
|
||||||
if (!(gst_alsa_stop_audio (this) && gst_alsa_start_audio (this))) {
|
GST_ELEMENT_ERROR (this, RESOURCE, FAILED, (NULL),
|
||||||
GST_ELEMENT_ERROR (this, RESOURCE, FAILED, (NULL),
|
("Error restarting audio after xrun"));
|
||||||
("Error restarting audio after xrun"));
|
return FALSE;
|
||||||
return FALSE;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue