mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
jack: Add the new layout field to the raw audio caps
This commit is contained in:
parent
531d611f83
commit
42bdbbcb29
2 changed files with 4 additions and 0 deletions
|
@ -637,6 +637,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-raw, "
|
||||
"format = (string) " GST_JACK_FORMAT_STR ", "
|
||||
"layout = (string) interleaved, "
|
||||
"rate = (int) [ 1, MAX ], " "channels = (int) [ 1, MAX ]")
|
||||
);
|
||||
|
||||
|
@ -840,6 +841,7 @@ gst_jack_audio_sink_getcaps (GstBaseSink * bsink, GstCaps * filter)
|
|||
if (!sink->caps) {
|
||||
sink->caps = gst_caps_new_simple ("audio/x-raw",
|
||||
"format", G_TYPE_STRING, GST_JACK_FORMAT_STR,
|
||||
"layout", G_TYPE_STRING, "interleaved",
|
||||
"rate", G_TYPE_INT, rate,
|
||||
"channels", GST_TYPE_INT_RANGE, min, max, NULL);
|
||||
}
|
||||
|
|
|
@ -674,6 +674,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("audio/x-raw, "
|
||||
"format = (string) " GST_JACK_FORMAT_STR ", "
|
||||
"layout = (string) interleaved, "
|
||||
"rate = (int) [ 1, MAX ], " "channels = (int) [ 1, MAX ]")
|
||||
);
|
||||
|
||||
|
@ -863,6 +864,7 @@ gst_jack_audio_src_getcaps (GstBaseSrc * bsrc, GstCaps * filter)
|
|||
if (!src->caps) {
|
||||
src->caps = gst_caps_new_simple ("audio/x-raw",
|
||||
"format", G_TYPE_STRING, GST_JACK_FORMAT_STR,
|
||||
"layout", G_TYPE_STRING, "interleaved",
|
||||
"rate", G_TYPE_INT, rate,
|
||||
"channels", GST_TYPE_INT_RANGE, min, max, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue