* @filter: (allow-none): suggested #GstCaps, or NULL
*
* Gets the capabilities this pad can produce or consume.
- * Note that this method doesn't necessarily return the caps set by
- * gst_pad_set_caps() - use gst_pad_get_current_caps() for that instead.
+ * Note that this method doesn't necessarily return the caps set by sending a
+ * gst_event_new_caps() - use gst_pad_get_current_caps() for that instead.
* gst_pad_query_caps returns all possible caps a pad can operate with, using
* the pad's CAPS query function, If the query fails, this function will return
* @filter, if not #NULL, otherwise ANY.
res = bclass->set_caps (src, caps);
if (res)
- res = gst_pad_set_caps (src->srcpad, caps);
+ res = gst_pad_push_event (src->srcpad, gst_event_new_caps (caps));
return res;
}