audioparse: Use the sinkpad template caps as fallback, not the srcpad ones

This commit is contained in:
Sebastian Dröge 2011-11-24 10:25:02 +01:00
parent c114e7c073
commit 6204464735
6 changed files with 6 additions and 6 deletions

View file

@ -743,7 +743,7 @@ gst_aac_parse_sink_getcaps (GstBaseParse * parse)
gst_caps_unref (peercaps);
} else {
res =
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD
(parse)));
}

View file

@ -692,7 +692,7 @@ gst_ac3_parse_get_sink_caps (GstBaseParse * parse)
gst_caps_unref (peercaps);
} else {
res =
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD
(parse)));
}

View file

@ -424,7 +424,7 @@ gst_amr_parse_sink_getcaps (GstBaseParse * parse)
gst_caps_unref (peercaps);
} else {
res =
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD
(parse)));
}

View file

@ -479,7 +479,7 @@ gst_dca_parse_get_sink_caps (GstBaseParse * parse)
gst_caps_unref (peercaps);
} else {
res =
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD
(parse)));
}

View file

@ -1455,7 +1455,7 @@ gst_flac_parse_get_sink_caps (GstBaseParse * parse)
gst_caps_unref (peercaps);
} else {
res =
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD
(parse)));
}

View file

@ -1299,7 +1299,7 @@ gst_mpeg_audio_parse_get_sink_caps (GstBaseParse * parse)
gst_caps_unref (peercaps);
} else {
res =
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD
gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD
(parse)));
}