audioparsers: intersect downstream allowed peer caps with sink pad template

This commit is contained in:
Mark Nauwelaerts 2012-03-22 16:10:33 +01:00
parent 072ac37bb2
commit 2de5d0d52f
7 changed files with 7 additions and 7 deletions

View file

@ -1118,7 +1118,7 @@ gst_aac_parse_sink_getcaps (GstBaseParse * parse)
res =
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_unref (peercaps);
} else {

View file

@ -688,7 +688,7 @@ gst_ac3_parse_get_sink_caps (GstBaseParse * parse)
res =
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_unref (peercaps);
} else {

View file

@ -418,7 +418,7 @@ gst_amr_parse_sink_getcaps (GstBaseParse * parse)
res =
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_unref (peercaps);
} else {

View file

@ -473,7 +473,7 @@ gst_dca_parse_get_sink_caps (GstBaseParse * parse)
res =
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_unref (peercaps);
} else {

View file

@ -1474,7 +1474,7 @@ gst_flac_parse_get_sink_caps (GstBaseParse * parse)
res =
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_unref (peercaps);
} else {

View file

@ -1430,7 +1430,7 @@ gst_mpeg_audio_parse_get_sink_caps (GstBaseParse * parse)
res =
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_unref (peercaps);
} else {

View file

@ -635,7 +635,7 @@ gst_wavpack_parse_get_sink_caps (GstBaseParse * parse)
res =
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_unref (peercaps);
} else {