mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
alsasink: pass correct error to g_strerror
The error we get is a negated errno. While there, fix a couple typos in messages.
This commit is contained in:
parent
86c698a46f
commit
74e9640a22
1 changed files with 3 additions and 3 deletions
|
@ -969,13 +969,13 @@ gst_alsasink_close (GstAudioSink * asink)
|
|||
static gint
|
||||
xrun_recovery (GstAlsaSink * alsa, snd_pcm_t * handle, gint err)
|
||||
{
|
||||
GST_DEBUG_OBJECT (alsa, "xrun recovery %d: %s", err, g_strerror (err));
|
||||
GST_DEBUG_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) {
|
||||
|
@ -986,7 +986,7 @@ xrun_recovery (GstAlsaSink * 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