[0.10] gst-plugins-base: alsasink: fix rate match message mistaking error code for sample rate

Tim Müller tpm at kemper.freedesktop.org
Tue Jan 17 18:02:22 PST 2012


Module: gst-plugins-base
Branch: 0.10
Commit: 5cb909efda590f5089069ab31456bf30b77c6ddc
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=5cb909efda590f5089069ab31456bf30b77c6ddc

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Mon Jan 16 11:40:47 2012 +0000

alsasink: fix rate match message mistaking error code for sample rate

---

 ext/alsa/gstalsasink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c
index 24b1d8a..d9736b7 100644
--- a/ext/alsa/gstalsasink.c
+++ b/ext/alsa/gstalsasink.c
@@ -508,7 +508,7 @@ no_rate:
 rate_match:
   {
     GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, (NULL),
-        ("Rate doesn't match (requested %iHz, get %iHz)", alsa->rate, err));
+        ("Rate doesn't match (requested %iHz, get %iHz)", alsa->rate, rrate));
     snd_pcm_hw_params_free (params);
     return -EINVAL;
   }



More information about the gstreamer-commits mailing list