mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
Improve debug message
Improve the debug message when alsa returns an error.
This commit is contained in:
parent
26256b95c8
commit
eb33188fba
1 changed files with 3 additions and 2 deletions
|
@ -881,8 +881,9 @@ gst_alsasink_write (GstAudioSink * asink, gpointer data, guint length)
|
|||
* to 4 times the period time */
|
||||
err = snd_pcm_wait (alsa->handle, (4 * alsa->period_time / 1000));
|
||||
if (err < 0) {
|
||||
GST_DEBUG_OBJECT (asink, "wait timeout, %d", err);
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (asink, "wait error, %d", err);
|
||||
}
|
||||
else {
|
||||
err = snd_pcm_writei (alsa->handle, ptr, cptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue