mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
audioparsers: intersect downstream allowed peer caps with sink pad template
This commit is contained in:
parent
072ac37bb2
commit
2de5d0d52f
7 changed files with 7 additions and 7 deletions
|
@ -1118,7 +1118,7 @@ gst_aac_parse_sink_getcaps (GstBaseParse * parse)
|
||||||
|
|
||||||
res =
|
res =
|
||||||
gst_caps_intersect_full (peercaps,
|
gst_caps_intersect_full (peercaps,
|
||||||
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
|
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
|
||||||
GST_CAPS_INTERSECT_FIRST);
|
GST_CAPS_INTERSECT_FIRST);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -688,7 +688,7 @@ gst_ac3_parse_get_sink_caps (GstBaseParse * parse)
|
||||||
|
|
||||||
res =
|
res =
|
||||||
gst_caps_intersect_full (peercaps,
|
gst_caps_intersect_full (peercaps,
|
||||||
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
|
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
|
||||||
GST_CAPS_INTERSECT_FIRST);
|
GST_CAPS_INTERSECT_FIRST);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -418,7 +418,7 @@ gst_amr_parse_sink_getcaps (GstBaseParse * parse)
|
||||||
|
|
||||||
res =
|
res =
|
||||||
gst_caps_intersect_full (peercaps,
|
gst_caps_intersect_full (peercaps,
|
||||||
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
|
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
|
||||||
GST_CAPS_INTERSECT_FIRST);
|
GST_CAPS_INTERSECT_FIRST);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -473,7 +473,7 @@ gst_dca_parse_get_sink_caps (GstBaseParse * parse)
|
||||||
|
|
||||||
res =
|
res =
|
||||||
gst_caps_intersect_full (peercaps,
|
gst_caps_intersect_full (peercaps,
|
||||||
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
|
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
|
||||||
GST_CAPS_INTERSECT_FIRST);
|
GST_CAPS_INTERSECT_FIRST);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1474,7 +1474,7 @@ gst_flac_parse_get_sink_caps (GstBaseParse * parse)
|
||||||
|
|
||||||
res =
|
res =
|
||||||
gst_caps_intersect_full (peercaps,
|
gst_caps_intersect_full (peercaps,
|
||||||
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
|
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
|
||||||
GST_CAPS_INTERSECT_FIRST);
|
GST_CAPS_INTERSECT_FIRST);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1430,7 +1430,7 @@ gst_mpeg_audio_parse_get_sink_caps (GstBaseParse * parse)
|
||||||
|
|
||||||
res =
|
res =
|
||||||
gst_caps_intersect_full (peercaps,
|
gst_caps_intersect_full (peercaps,
|
||||||
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
|
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
|
||||||
GST_CAPS_INTERSECT_FIRST);
|
GST_CAPS_INTERSECT_FIRST);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -635,7 +635,7 @@ gst_wavpack_parse_get_sink_caps (GstBaseParse * parse)
|
||||||
|
|
||||||
res =
|
res =
|
||||||
gst_caps_intersect_full (peercaps,
|
gst_caps_intersect_full (peercaps,
|
||||||
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
|
gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
|
||||||
GST_CAPS_INTERSECT_FIRST);
|
GST_CAPS_INTERSECT_FIRST);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue