alsa: Change the log messages in xrun_recovery() from DEBUG to WARNING

xrun_recovery() runs when there is an error

https://bugzilla.gnome.org/show_bug.cgi?id=740615
This commit is contained in:
Branislav Katreniak 2014-06-16 11:46:18 +02:00 committed by Luis de Bethencourt
parent db304a446b
commit 5e8e6276cd
2 changed files with 4 additions and 3 deletions

View file

@ -982,7 +982,7 @@ gst_alsasink_close (GstAudioSink * asink)
static gint static gint
xrun_recovery (GstAlsaSink * alsa, snd_pcm_t * handle, gint err) xrun_recovery (GstAlsaSink * alsa, snd_pcm_t * handle, gint err)
{ {
GST_DEBUG_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 */ if (err == -EPIPE) { /* under-run */
err = snd_pcm_prepare (handle); err = snd_pcm_prepare (handle);

View file

@ -787,7 +787,8 @@ gst_alsasrc_prepare (GstAudioSrc * asrc, GstAudioRingBufferSpec * spec)
if (chmap && chmap->channels == alsa->channels) { if (chmap && chmap->channels == alsa->channels) {
GstAudioChannelPosition pos[8]; GstAudioChannelPosition pos[8];
if (alsa_chmap_to_channel_positions (chmap, pos)) if (alsa_chmap_to_channel_positions (chmap, pos))
gst_audio_ring_buffer_set_channel_positions (GST_AUDIO_BASE_SRC (alsa)->ringbuffer, pos); gst_audio_ring_buffer_set_channel_positions (GST_AUDIO_BASE_SRC
(alsa)->ringbuffer, pos);
} }
free (chmap); free (chmap);
} }
@ -861,7 +862,7 @@ gst_alsasrc_close (GstAudioSrc * asrc)
static gint static gint
xrun_recovery (GstAlsaSrc * alsa, snd_pcm_t * handle, gint err) xrun_recovery (GstAlsaSrc * alsa, snd_pcm_t * handle, gint err)
{ {
GST_DEBUG_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 */ if (err == -EPIPE) { /* under-run */
err = snd_pcm_prepare (handle); err = snd_pcm_prepare (handle);