summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2012-09-01 09:12:51 -0700
committerJan Schmidt <thaytan@noraisin.net>2012-09-01 16:09:59 -0700
commita303375a3f5c12e97ca8bf50b5a93ce8652faf23 (patch)
tree8af3920541cd257d5306e35586d7d76d2423cbc6
parentf2d0c6a89ee771beafbe428b6c224f31779bd319 (diff)
downloadgstreamer-plugins-bad-a303375a3f5c12e97ca8bf50b5a93ce8652faf23.tar.gz
autoconvert: Handle caps query on internal srcpad
Reply with ANY caps to ensure linking the internal src pad. This might need more attention later, to reply with the real upstream caps for the currently active element.
-rw-r--r--gst/autoconvert/gstautoconvert.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gst/autoconvert/gstautoconvert.c b/gst/autoconvert/gstautoconvert.c
index 05244b3b3..8ba5963c7 100644
--- a/gst/autoconvert/gstautoconvert.c
+++ b/gst/autoconvert/gstautoconvert.c
@@ -1319,5 +1319,15 @@ gst_auto_convert_internal_src_query (GstPad * pad, GstObject * parent,
GST_AUTO_CONVERT (g_object_get_qdata (G_OBJECT (pad),
parent_quark));
+ if (GST_QUERY_TYPE (query) == GST_QUERY_CAPS) {
+ GstCaps *caps;
+
+ caps = gst_caps_new_any ();
+ gst_query_set_caps_result (query, caps);
+ gst_caps_unref (caps);
+
+ return TRUE;
+ }
+
return gst_pad_peer_query (autoconvert->sinkpad, query);
}