summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-11-05 12:11:19 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-11-05 12:11:19 +0100
commitdd741e6412cf9e31aefb0de5aeb66e196a0499e4 (patch)
treea6bec3769d4571c4ed6aa0e07d5eb73f7f045cd3
parent387839c57e85187874b4e6ec82da2654df5d5a64 (diff)
downloadgstreamer-plugins-base-dd741e6412cf9e31aefb0de5aeb66e196a0499e4.tar.gz
opusdec: Update sink pad templates
We always require the channel-mapping-field. If it's 0 we require nothing else, otherwise we need channels, stream-count and coupled count to be available.
-rw-r--r--ext/opus/gstopusdec.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
index 8ca2809a3..c7cbb7c29 100644
--- a/ext/opus/gstopusdec.c
+++ b/ext/opus/gstopusdec.c
@@ -64,10 +64,15 @@ GST_STATIC_PAD_TEMPLATE ("src",
);
static GstStaticPadTemplate opus_dec_sink_factory =
-GST_STATIC_PAD_TEMPLATE ("sink",
+ GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("audio/x-opus")
+ GST_STATIC_CAPS ("audio/x-opus, "
+ "channel-mapping-family = (int) 0; "
+ "audio/x-opus, "
+ "channel-mapping-family = (int) [1, 255], "
+ "channels = (int) [1, 255], "
+ "stream-count = (int) [1, 255], " "coupled-count = (int) [0, 255]")
);
G_DEFINE_TYPE (GstOpusDec, gst_opus_dec, GST_TYPE_AUDIO_DECODER);