_accept_caps() -> _query_accept_caps()
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 15 Nov 2011 16:40:19 +0000 (17:40 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 15 Nov 2011 16:40:19 +0000 (17:40 +0100)
docs/gst/gstreamer-sections.txt
gst/gstpad.c
gst/gstpad.h
libs/gst/base/gstbasetransform.c
plugins/elements/gstcapsfilter.c

index 01dc325..27fa7fc 100644 (file)
@@ -1596,8 +1596,7 @@ gst_pad_get_pad_template_caps
 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
 
@@ -1639,12 +1638,12 @@ GstPadLinkFunction
 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
index bc9be5e..2a86ac3 100644 (file)
@@ -2198,7 +2198,7 @@ gst_pad_peer_query_caps (GstPad * pad, GstCaps * filter)
 }
 
 /**
- * gst_pad_accept_caps:
+ * gst_pad_query_accept_caps:
  * @pad: a #GstPad to check
  * @caps: a #GstCaps to check on the pad
  *
@@ -2207,7 +2207,7 @@ gst_pad_peer_query_caps (GstPad * pad, GstCaps * filter)
  * 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;
@@ -2228,7 +2228,7 @@ gst_pad_accept_caps (GstPad * pad, GstCaps * caps)
 }
 
 /**
- * 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
  *
@@ -2238,7 +2238,7 @@ gst_pad_accept_caps (GstPad * pad, GstCaps * caps)
  * 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;
index 781f9c4..ab9e5ab 100644 (file)
@@ -835,11 +835,11 @@ GstCaps*                gst_pad_get_pad_template_caps             (GstPad *pad);
 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);
index ea94778..c195805 100644 (file)
@@ -1056,7 +1056,7 @@ gst_base_transform_find_transform (GstBaseTransform * trans, 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
index f28b7d5..ceed308 100644 (file)
@@ -296,9 +296,13 @@ gst_capsfilter_accept_caps (GstBaseTransform * base,
   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);
   }