From 026ec68f759a16b6e35c154da29dcd54c5208dbf Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 15 Nov 2011 17:17:53 +0100 Subject: [PATCH] _peer_get_caps() -> _peer_query_caps() --- ext/libvisual/visual.c | 2 +- ext/pango/gstbasetextoverlay.c | 2 +- ext/pango/gsttextrender.c | 2 +- gst-libs/gst/rtp/gstrtpbasepayload.c | 2 +- gst/adder/gstadder.c | 2 +- gst/encoding/gstsmartencoder.c | 2 +- gst/encoding/gststreamsplitter.c | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ext/libvisual/visual.c b/ext/libvisual/visual.c index 5be9736..590b634 100644 --- a/ext/libvisual/visual.c +++ b/ext/libvisual/visual.c @@ -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); diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c index 05cd2f1..f359770 100644 --- a/ext/pango/gstbasetextoverlay.c +++ b/ext/pango/gstbasetextoverlay.c @@ -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; diff --git a/ext/pango/gsttextrender.c b/ext/pango/gsttextrender.c index f506503..b4fb54d 100644 --- a/ext/pango/gsttextrender.c +++ b/ext/pango/gsttextrender.c @@ -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)) { diff --git a/gst-libs/gst/rtp/gstrtpbasepayload.c b/gst-libs/gst/rtp/gstrtpbasepayload.c index 2af43a9..9d2bbc7 100644 --- a/gst-libs/gst/rtp/gstrtpbasepayload.c +++ b/gst-libs/gst/rtp/gstrtpbasepayload.c @@ -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, diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index 8f143b9..e8c80f4 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -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); diff --git a/gst/encoding/gstsmartencoder.c b/gst/encoding/gstsmartencoder.c index 4a88f25..18d06ef 100644 --- a/gst/encoding/gstsmartencoder.c +++ b/gst/encoding/gstsmartencoder.c @@ -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; diff --git a/gst/encoding/gststreamsplitter.c b/gst/encoding/gststreamsplitter.c index 30eee3f..cbcd976 100644 --- a/gst/encoding/gststreamsplitter.c +++ b/gst/encoding/gststreamsplitter.c @@ -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); -- 2.7.4