Commit 62044647 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

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

parent c114e7c0
......@@ -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)));
}
......
......@@ -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)));
}
......
......@@ -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)));
}
......
......@@ -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)));
}
......
......@@ -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)));
}
......
......@@ -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)));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment