mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
parent
0e3bfbd996
commit
b6d49d2a12
1 changed files with 3 additions and 3 deletions
|
@ -862,13 +862,13 @@ gst_alsasrc_close (GstAudioSrc * asrc)
|
|||
static gint
|
||||
xrun_recovery (GstAlsaSrc * alsa, snd_pcm_t * handle, gint err)
|
||||
{
|
||||
GST_WARNING_OBJECT (alsa, "xrun recovery %d: %s", err, g_strerror (err));
|
||||
GST_WARNING_OBJECT (alsa, "xrun recovery %d: %s", err, g_strerror (-err));
|
||||
|
||||
if (err == -EPIPE) { /* under-run */
|
||||
err = snd_pcm_prepare (handle);
|
||||
if (err < 0)
|
||||
GST_WARNING_OBJECT (alsa,
|
||||
"Can't recovery from underrun, prepare failed: %s",
|
||||
"Can't recover from underrun, prepare failed: %s",
|
||||
snd_strerror (err));
|
||||
return 0;
|
||||
} else if (err == -ESTRPIPE) {
|
||||
|
@ -879,7 +879,7 @@ xrun_recovery (GstAlsaSrc * alsa, snd_pcm_t * handle, gint err)
|
|||
err = snd_pcm_prepare (handle);
|
||||
if (err < 0)
|
||||
GST_WARNING_OBJECT (alsa,
|
||||
"Can't recovery from suspend, prepare failed: %s",
|
||||
"Can't recover from suspend, prepare failed: %s",
|
||||
snd_strerror (err));
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue