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

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 25 02:51:09 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: 361f2b169cacc92699c8a4acb55e27ef29afc113
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=361f2b169cacc92699c8a4acb55e27ef29afc113

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 b15ed9a..20de864 100644
--- a/ext/alsa/gstalsasink.c
+++ b/ext/alsa/gstalsasink.c
@@ -510,7 +510,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