_peer_get_caps() -> _peer_query_caps()
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 15 Nov 2011 16:17:53 +0000 (17:17 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 15 Nov 2011 17:04:17 +0000 (18:04 +0100)
ext/libvisual/visual.c
ext/pango/gstbasetextoverlay.c
ext/pango/gsttextrender.c
gst-libs/gst/rtp/gstrtpbasepayload.c
gst/adder/gstadder.c
gst/encoding/gstsmartencoder.c
gst/encoding/gststreamsplitter.c

index 5be9736..590b634 100644 (file)
@@ -426,7 +426,7 @@ gst_vis_src_negotiate (GstVisual * visual)
   caps = gst_pad_query_caps (visual->srcpad, NULL);
 
   /* see what the peer can do */
-  othercaps = gst_pad_peer_get_caps (visual->srcpad, caps);
+  othercaps = gst_pad_peer_query_caps (visual->srcpad, caps);
   if (othercaps) {
     target = othercaps;
     gst_caps_unref (caps);
index 05cd2f1..f359770 100644 (file)
@@ -1106,7 +1106,7 @@ gst_base_text_overlay_getcaps (GstPad * pad, GstCaps * filter)
     otherpad = overlay->srcpad;
 
   /* we can do what the peer can */
-  caps = gst_pad_peer_get_caps (otherpad, filter);
+  caps = gst_pad_peer_query_caps (otherpad, filter);
   if (caps) {
     GstCaps *temp, *templ;
 
index f506503..b4fb54d 100644 (file)
@@ -496,7 +496,7 @@ gst_text_render_chain (GstPad * pad, GstBuffer * inbuf)
   gst_text_render_check_argb (render);
 
   padcaps = gst_pad_query_caps (render->srcpad, NULL);
-  caps = gst_pad_peer_get_caps (render->srcpad, padcaps);
+  caps = gst_pad_peer_query_caps (render->srcpad, padcaps);
   gst_caps_unref (padcaps);
 
   if (!caps || gst_caps_is_empty (caps)) {
index 2af43a9..9d2bbc7 100644 (file)
@@ -592,7 +592,7 @@ gst_rtp_base_payload_set_outcaps (GstRTPBasePayload * payload,
   payload->ptime = 0;
 
   /* the peer caps can override some of the defaults */
-  peercaps = gst_pad_peer_get_caps (payload->srcpad, srccaps);
+  peercaps = gst_pad_peer_query_caps (payload->srcpad, srccaps);
   if (peercaps == NULL) {
     /* no peer caps, just add the other properties */
     gst_caps_set_simple (srccaps,
index 8f143b9..e8c80f4 100644 (file)
@@ -166,7 +166,7 @@ gst_adder_sink_getcaps (GstPad * pad, GstCaps * filter)
   }
 
   /* get the downstream possible caps */
-  peercaps = gst_pad_peer_get_caps (adder->srcpad, filter_caps);
+  peercaps = gst_pad_peer_query_caps (adder->srcpad, filter_caps);
 
   /* get the allowed caps on this sinkpad */
   sinkcaps = gst_pad_get_current_caps (pad);
index 4a88f25..18d06ef 100644 (file)
@@ -393,7 +393,7 @@ smart_encoder_sink_getcaps (GstPad * pad, GstCaps * filter)
     tmpl = gst_static_pad_template_get_caps (&src_template);
 
   /* Try getting it from downstream */
-  peer = gst_pad_peer_get_caps (smart_encoder->srcpad, tmpl);
+  peer = gst_pad_peer_query_caps (smart_encoder->srcpad, tmpl);
 
   if (peer == NULL) {
     res = tmpl;
index 30eee3f..cbcd976 100644 (file)
@@ -281,11 +281,11 @@ resync:
 
     STREAMS_UNLOCK (stream_splitter);
     if (res) {
-      GstCaps *peercaps = gst_pad_peer_get_caps (srcpad, filter);
+      GstCaps *peercaps = gst_pad_peer_query_caps (srcpad, filter);
       if (peercaps)
         gst_caps_merge (res, gst_caps_make_writable (peercaps));
     } else {
-      res = gst_pad_peer_get_caps (srcpad, filter);
+      res = gst_pad_peer_query_caps (srcpad, filter);
     }
     STREAMS_LOCK (stream_splitter);
 
@@ -355,7 +355,7 @@ resync:
     GstCaps *peercaps;
 
     STREAMS_UNLOCK (stream_splitter);
-    peercaps = gst_pad_peer_get_caps (srcpad, NULL);
+    peercaps = gst_pad_peer_query_caps (srcpad, NULL);
     if (peercaps) {
       res = gst_caps_can_intersect (caps, peercaps);
       gst_caps_unref (peercaps);