[gst-cvs] gst-plugins-good: mp4adepay: small logging cleanup and addition to debug config parsing

Stefan Kost ensonic at kemper.freedesktop.org
Thu Sep 9 11:49:15 PDT 2010


Module: gst-plugins-good
Branch: master
Commit: d569cd819545e82ce6316d93fb8a99dd5b5233ee
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=d569cd819545e82ce6316d93fb8a99dd5b5233ee

Author: Stefan Kost <ensonic at users.sf.net>
Date:   Thu Sep  9 21:43:40 2010 +0300

mp4adepay: small logging cleanup and addition to debug config parsing

---

 gst/rtp/gstrtpmp4adepay.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c
index 3e88fef..f913a67 100644
--- a/gst/rtp/gstrtpmp4adepay.c
+++ b/gst/rtp/gstrtpmp4adepay.c
@@ -216,8 +216,10 @@ gst_rtp_mp4a_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
       if (sr_idx < G_N_ELEMENTS (aac_sample_rates)) {
         gst_caps_set_simple (srccaps,
             "rate", G_TYPE_INT, (gint) aac_sample_rates[sr_idx], NULL);
+        GST_DEBUG_OBJECT (depayload, "sampling rate from stream-config %u",
+            aac_sample_rates[sr_idx]);
       } else {
-        GST_WARNING ("Invalid sample rate index %u", sr_idx);
+        GST_WARNING_OBJECT (depayload, "Invalid sample rate index %u", sr_idx);
       }
 
       /* ignore remaining bit, we're only interested in full bytes */





More information about the Gstreamer-commits mailing list