From 5e8e6276cd9e572473741726d00deddff0ae8ff9 Mon Sep 17 00:00:00 2001 From: Branislav Katreniak Date: Mon, 16 Jun 2014 11:46:18 +0200 Subject: [PATCH] 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 --- ext/alsa/gstalsasink.c | 2 +- ext/alsa/gstalsasrc.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c index 7d7b443ec3..16eef71f37 100644 --- a/ext/alsa/gstalsasink.c +++ b/ext/alsa/gstalsasink.c @@ -982,7 +982,7 @@ 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_WARNING_OBJECT (alsa, "xrun recovery %d: %s", err, g_strerror (-err)); if (err == -EPIPE) { /* under-run */ err = snd_pcm_prepare (handle); diff --git a/ext/alsa/gstalsasrc.c b/ext/alsa/gstalsasrc.c index 43b82b12fc..77392b00e7 100644 --- a/ext/alsa/gstalsasrc.c +++ b/ext/alsa/gstalsasrc.c @@ -787,7 +787,8 @@ gst_alsasrc_prepare (GstAudioSrc * asrc, GstAudioRingBufferSpec * spec) if (chmap && chmap->channels == alsa->channels) { GstAudioChannelPosition pos[8]; 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); } @@ -861,7 +862,7 @@ gst_alsasrc_close (GstAudioSrc * asrc) static gint 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 */ err = snd_pcm_prepare (handle);