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);
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;
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)) {
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,
}
/* 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);
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;
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);
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);