[0.11] gst-plugins-base: audiotestsrc: Fix channel-mask handling

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


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

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Wed Jan  4 10:26:47 2012 +0100

audiotestsrc: Fix channel-mask handling

---

 gst/audiotestsrc/gstaudiotestsrc.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c
index 2a5a474..5588540 100644
--- a/gst/audiotestsrc/gstaudiotestsrc.c
+++ b/gst/audiotestsrc/gstaudiotestsrc.c
@@ -84,13 +84,19 @@ enum
 #endif
 
 static GstStaticPadTemplate gst_audio_test_src_src_template =
-GST_STATIC_PAD_TEMPLATE ("src",
+    GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("audio/x-raw, "
         "format = (string) " FORMAT_STR ", "
         "layout = (string) interleaved, "
-        "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]")
+        "rate = (int) [ 1, MAX ], "
+        "channels = (int) 1; "
+        "audio/x-raw, "
+        "format = (string) " FORMAT_STR ", "
+        "layout = (string) interleaved, "
+        "rate = (int) [ 1, MAX ], "
+        "channels = (int) 2, " "channel-mask = (bitmask) 0x3")
     );
 
 #define gst_audio_test_src_parent_class parent_class



More information about the gstreamer-commits mailing list