mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
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.
This commit is contained in:
parent
387839c57e
commit
dd741e6412
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue