gst_pad_set_caps
gst_pad_get_peer
-gst_pad_peer_get_caps
-gst_pad_peer_get_caps_reffed
+gst_pad_peer_query_caps
gst_pad_use_fixed_caps
gst_pad_has_current_caps
gst_pad_set_unlink_function
GstPadUnlinkFunction
-gst_pad_accept_caps
+gst_pad_query_accept_caps
gst_pad_proxy_query_caps
gst_pad_proxy_query_accept_caps
-gst_pad_peer_accept_caps
+gst_pad_peer_query_accept_caps
gst_pad_set_activate_function
GstPadActivateFunction
}
/**
- * gst_pad_accept_caps:
+ * gst_pad_query_accept_caps:
* @pad: a #GstPad to check
* @caps: a #GstCaps to check on the pad
*
* Returns: TRUE if the pad can accept the caps.
*/
gboolean
-gst_pad_accept_caps (GstPad * pad, GstCaps * caps)
+gst_pad_query_accept_caps (GstPad * pad, GstCaps * caps)
{
gboolean res = TRUE;
GstQuery *query;
}
/**
- * gst_pad_peer_accept_caps:
+ * gst_pad_peer_query_accept_caps:
* @pad: a #GstPad to check the peer of
* @caps: a #GstCaps to check on the pad
*
* Returns: TRUE if the peer of @pad can accept the caps or @pad has no peer.
*/
gboolean
-gst_pad_peer_accept_caps (GstPad * pad, GstCaps * caps)
+gst_pad_peer_query_accept_caps (GstPad * pad, GstCaps * caps)
{
gboolean res = TRUE;
GstQuery *query;
GstCaps * gst_pad_get_current_caps (GstPad * pad);
gboolean gst_pad_has_current_caps (GstPad * pad);
GstCaps * gst_pad_query_caps (GstPad * pad, GstCaps *filter);
-gboolean gst_pad_accept_caps (GstPad * pad, GstCaps *caps);
+gboolean gst_pad_query_accept_caps (GstPad * pad, GstCaps *caps);
gboolean gst_pad_set_caps (GstPad * pad, GstCaps *caps);
GstCaps * gst_pad_peer_query_caps (GstPad * pad, GstCaps *filter);
-gboolean gst_pad_peer_accept_caps (GstPad * pad, GstCaps *caps);
+gboolean gst_pad_peer_query_accept_caps (GstPad * pad, GstCaps *caps);
/* capsnego for linked pads */
GstCaps * gst_pad_get_allowed_caps (GstPad * pad);
goto could_not_fixate;
/* and peer should accept */
- if (otherpeer && !gst_pad_accept_caps (otherpeer, othercaps))
+ if (otherpeer && !gst_pad_query_accept_caps (otherpeer, othercaps))
goto peer_no_accept;
GST_DEBUG_OBJECT (trans, "Input caps were %" GST_PTR_FORMAT
if (ret) {
/* if we can intersect, see if the other end also accepts */
if (direction == GST_PAD_SRC)
- ret = gst_pad_peer_accept_caps (GST_BASE_TRANSFORM_SINK_PAD (base), caps);
+ ret =
+ gst_pad_peer_query_accept_caps (GST_BASE_TRANSFORM_SINK_PAD (base),
+ caps);
else
- ret = gst_pad_peer_accept_caps (GST_BASE_TRANSFORM_SRC_PAD (base), caps);
+ ret =
+ gst_pad_peer_query_accept_caps (GST_BASE_TRANSFORM_SRC_PAD (base),
+ caps);
GST_DEBUG_OBJECT (capsfilter, "peer accept: %d", ret);
}