mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
_peer_get_caps() -> _peer_query_caps()
This commit is contained in:
parent
7402d3a3d2
commit
026ec68f75
7 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue