[0.11] gst-plugins-ugly: amrwbdec: Add the new layout field to the raw audio caps

Sebastian Dröge slomo at kemper.freedesktop.org
Thu Jan 5 01:37:14 PST 2012


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

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Wed Jan  4 15:43:13 2012 +0100

amrwbdec: Add the new layout field to the raw audio caps

---

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

diff --git a/ext/amrwbdec/amrwbdec.c b/ext/amrwbdec/amrwbdec.c
index daed475..cfca1e0 100644
--- a/ext/amrwbdec/amrwbdec.c
+++ b/ext/amrwbdec/amrwbdec.c
@@ -52,6 +52,7 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("audio/x-raw, "
         "format = (string) " GST_AUDIO_NE (S16) ", "
+        "layout = (string) interleaved, "
         "rate = (int) 16000, " "channels = (int) 1")
     );
 
@@ -151,6 +152,7 @@ gst_amrwbdec_set_format (GstAudioDecoder * dec, GstCaps * caps)
   /* create reverse caps */
   copy = gst_caps_new_simple ("audio/x-raw",
       "format", G_TYPE_STRING, GST_AUDIO_NE (S16),
+      "layout", G_TYPE_STRING, "interleaved",
       "channels", G_TYPE_INT, amrwbdec->channels,
       "rate", G_TYPE_INT, amrwbdec->rate, NULL);
 



More information about the gstreamer-commits mailing list