mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
_peer_get_caps() -> _peer_query_caps()
This commit is contained in:
parent
b2d508ac40
commit
797523efbd
14 changed files with 23 additions and 23 deletions
|
@ -305,7 +305,7 @@ gst_jpegenc_getcaps (GstPad * pad, GstCaps * filter)
|
|||
/* we want to proxy properties like width, height and framerate from the
|
||||
other end of the element */
|
||||
|
||||
othercaps = gst_pad_peer_get_caps (jpegenc->srcpad, filter);
|
||||
othercaps = gst_pad_peer_query_caps (jpegenc->srcpad, filter);
|
||||
if (othercaps == NULL ||
|
||||
gst_caps_is_empty (othercaps) || gst_caps_is_any (othercaps)) {
|
||||
caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
|
||||
|
|
|
@ -606,7 +606,7 @@ out:
|
|||
static void
|
||||
update_eac3_alignment (GstPulseAudioSink * pbin)
|
||||
{
|
||||
GstCaps *caps = gst_pad_peer_get_caps (pbin->sinkpad, NULL);
|
||||
GstCaps *caps = gst_pad_peer_query_caps (pbin->sinkpad, NULL);
|
||||
GstStructure *st;
|
||||
|
||||
if (!caps)
|
||||
|
|
|
@ -933,7 +933,7 @@ gst_pulsesrc_negotiate (GstBaseSrc * basesrc)
|
|||
goto no_nego_needed;
|
||||
|
||||
/* get the peer caps */
|
||||
peercaps = gst_pad_peer_get_caps (GST_BASE_SRC_PAD (basesrc), NULL);
|
||||
peercaps = gst_pad_peer_query_caps (GST_BASE_SRC_PAD (basesrc), NULL);
|
||||
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
|
||||
if (peercaps) {
|
||||
/* get intersection */
|
||||
|
|
|
@ -254,7 +254,7 @@ gst_goom_src_negotiate (GstGoom * goom)
|
|||
GST_DEBUG_OBJECT (goom, "performing negotiation");
|
||||
|
||||
/* see what the peer can do */
|
||||
othercaps = gst_pad_peer_get_caps (goom->srcpad, NULL);
|
||||
othercaps = gst_pad_peer_query_caps (goom->srcpad, NULL);
|
||||
if (othercaps) {
|
||||
target = gst_caps_intersect (othercaps, templ);
|
||||
gst_caps_unref (othercaps);
|
||||
|
|
|
@ -166,7 +166,7 @@ gst_alaw_dec_getcaps (GstPad * pad, GstCaps * filter)
|
|||
otherpad = alawdec->srcpad;
|
||||
}
|
||||
/* get caps from the peer, this can return NULL when there is no peer */
|
||||
othercaps = gst_pad_peer_get_caps (otherpad, filter);
|
||||
othercaps = gst_pad_peer_query_caps (otherpad, filter);
|
||||
|
||||
/* get the template caps to make sure we return something acceptable */
|
||||
templ = gst_pad_get_pad_template_caps (pad);
|
||||
|
|
|
@ -318,7 +318,7 @@ gst_alaw_enc_getcaps (GstPad * pad, GstCaps * filter)
|
|||
otherpad = alawenc->srcpad;
|
||||
}
|
||||
/* get caps from the peer, this can return NULL when there is no peer */
|
||||
othercaps = gst_pad_peer_get_caps (otherpad, filter);
|
||||
othercaps = gst_pad_peer_query_caps (otherpad, filter);
|
||||
|
||||
/* get the template caps to make sure we return something acceptable */
|
||||
templ = gst_pad_get_pad_template_caps (pad);
|
||||
|
|
|
@ -109,7 +109,7 @@ mulawdec_getcaps (GstPad * pad, GstCaps * filter)
|
|||
otherpad = mulawdec->srcpad;
|
||||
}
|
||||
/* get caps from the peer, this can return NULL when there is no peer */
|
||||
othercaps = gst_pad_peer_get_caps (otherpad, filter);
|
||||
othercaps = gst_pad_peer_query_caps (otherpad, filter);
|
||||
|
||||
/* get the template caps to make sure we return something acceptable */
|
||||
templ = gst_pad_get_pad_template_caps (pad);
|
||||
|
|
|
@ -73,7 +73,7 @@ mulawenc_getcaps (GstPad * pad, GstCaps * filter)
|
|||
otherpad = mulawenc->srcpad;
|
||||
}
|
||||
/* get caps from the peer, this can return NULL when there is no peer */
|
||||
othercaps = gst_pad_peer_get_caps (otherpad, filter);
|
||||
othercaps = gst_pad_peer_query_caps (otherpad, filter);
|
||||
|
||||
/* get the template caps to make sure we return something acceptable */
|
||||
templ = gst_pad_get_pad_template_caps (pad);
|
||||
|
|
|
@ -181,7 +181,7 @@ gst_rtp_g726_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
|||
GST_DEBUG_OBJECT (payload, "selected base encoding %s", encoding_name);
|
||||
|
||||
/* now see if we need to produce AAL2 or not */
|
||||
peercaps = gst_pad_peer_get_caps (payload->srcpad, NULL);
|
||||
peercaps = gst_pad_peer_query_caps (payload->srcpad, NULL);
|
||||
if (peercaps) {
|
||||
GstCaps *filter, *intersect;
|
||||
gchar *capsstr;
|
||||
|
|
|
@ -182,7 +182,7 @@ gst_rtp_h263p_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
|||
g_return_val_if_fail (gst_caps_is_fixed (caps), FALSE);
|
||||
|
||||
peercaps =
|
||||
gst_pad_peer_get_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), NULL);
|
||||
gst_pad_peer_query_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), NULL);
|
||||
if (peercaps) {
|
||||
GstCaps *intersect = gst_caps_intersect (peercaps,
|
||||
gst_pad_get_pad_template_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload)));
|
||||
|
@ -241,7 +241,7 @@ gst_rtp_h263p_pay_sink_getcaps (GstRTPBasePayload * payload, GstPad * pad,
|
|||
rtph263ppay = GST_RTP_H263P_PAY (payload);
|
||||
|
||||
peercaps =
|
||||
gst_pad_peer_get_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), filter);
|
||||
gst_pad_peer_query_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), filter);
|
||||
if (!peercaps)
|
||||
return
|
||||
gst_caps_copy (gst_pad_get_pad_template_caps
|
||||
|
|
|
@ -270,7 +270,7 @@ gst_rtp_h264_pay_getcaps (GstRTPBasePayload * payload, GstPad * pad,
|
|||
GstCaps *allowed_caps;
|
||||
|
||||
allowed_caps =
|
||||
gst_pad_peer_get_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), filter);
|
||||
gst_pad_peer_query_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), filter);
|
||||
|
||||
if (allowed_caps) {
|
||||
GstCaps *caps = NULL;
|
||||
|
|
|
@ -727,7 +727,7 @@ gst_rtp_jitter_buffer_getcaps (GstPad * pad, GstCaps * filter)
|
|||
|
||||
other = (pad == priv->srcpad ? priv->sinkpad : priv->srcpad);
|
||||
|
||||
caps = gst_pad_peer_get_caps (other, filter);
|
||||
caps = gst_pad_peer_query_caps (other, filter);
|
||||
|
||||
templ = gst_pad_get_pad_template_caps (pad);
|
||||
if (caps == NULL) {
|
||||
|
|
|
@ -330,7 +330,7 @@ gst_shape_wipe_video_sink_getcaps (GstPad * pad, GstCaps * filter)
|
|||
if (gst_pad_has_current_caps (pad))
|
||||
return gst_pad_get_current_caps (pad);
|
||||
|
||||
tmp = gst_pad_peer_get_caps (self->srcpad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (self->srcpad, NULL);
|
||||
if (tmp) {
|
||||
ret = gst_caps_intersect (tmp, gst_pad_get_pad_template_caps (pad));
|
||||
gst_caps_unref (tmp);
|
||||
|
@ -343,7 +343,7 @@ gst_shape_wipe_video_sink_getcaps (GstPad * pad, GstCaps * filter)
|
|||
if (gst_caps_is_empty (ret))
|
||||
goto done;
|
||||
|
||||
tmp = gst_pad_peer_get_caps (pad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (pad, NULL);
|
||||
|
||||
GST_LOG_OBJECT (pad, "peerpad accepted caps: %" GST_PTR_FORMAT, tmp);
|
||||
if (tmp) {
|
||||
|
@ -372,7 +372,7 @@ gst_shape_wipe_video_sink_getcaps (GstPad * pad, GstCaps * filter)
|
|||
}
|
||||
}
|
||||
|
||||
tmp = gst_pad_peer_get_caps (self->mask_sinkpad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (self->mask_sinkpad, NULL);
|
||||
|
||||
GST_LOG_OBJECT (pad, "mask accepted caps: %" GST_PTR_FORMAT, tmp);
|
||||
if (tmp) {
|
||||
|
@ -456,7 +456,7 @@ gst_shape_wipe_mask_sink_getcaps (GstPad * pad, GstCaps * filter)
|
|||
if (gst_pad_has_current_caps (pad))
|
||||
return gst_pad_get_current_caps (pad);
|
||||
|
||||
tmp = gst_pad_peer_get_caps (self->video_sinkpad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (self->video_sinkpad, NULL);
|
||||
if (tmp) {
|
||||
ret =
|
||||
gst_caps_intersect (tmp,
|
||||
|
@ -471,7 +471,7 @@ gst_shape_wipe_mask_sink_getcaps (GstPad * pad, GstCaps * filter)
|
|||
if (gst_caps_is_empty (ret))
|
||||
goto done;
|
||||
|
||||
tmp = gst_pad_peer_get_caps (self->srcpad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (self->srcpad, NULL);
|
||||
GST_LOG_OBJECT (pad, "srcpad accepted caps: %" GST_PTR_FORMAT, ret);
|
||||
|
||||
if (tmp) {
|
||||
|
@ -512,7 +512,7 @@ gst_shape_wipe_mask_sink_getcaps (GstPad * pad, GstCaps * filter)
|
|||
}
|
||||
gst_caps_append (ret, tmp);
|
||||
|
||||
tmp = gst_pad_peer_get_caps (pad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (pad, NULL);
|
||||
GST_LOG_OBJECT (pad, "peer accepted caps: %" GST_PTR_FORMAT, tmp);
|
||||
|
||||
if (tmp) {
|
||||
|
@ -543,7 +543,7 @@ gst_shape_wipe_src_getcaps (GstPad * pad, GstCaps * filter)
|
|||
else if (gst_pad_has_current_caps (self->video_sinkpad))
|
||||
return gst_pad_get_current_caps (self->video_sinkpad);
|
||||
|
||||
tmp = gst_pad_peer_get_caps (self->video_sinkpad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (self->video_sinkpad, NULL);
|
||||
if (tmp) {
|
||||
ret =
|
||||
gst_caps_intersect (tmp,
|
||||
|
@ -558,7 +558,7 @@ gst_shape_wipe_src_getcaps (GstPad * pad, GstCaps * filter)
|
|||
if (gst_caps_is_empty (ret))
|
||||
goto done;
|
||||
|
||||
tmp = gst_pad_peer_get_caps (pad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (pad, NULL);
|
||||
GST_LOG_OBJECT (pad, "peer accepted caps: %" GST_PTR_FORMAT, ret);
|
||||
if (tmp) {
|
||||
GstCaps *intersection;
|
||||
|
@ -586,7 +586,7 @@ gst_shape_wipe_src_getcaps (GstPad * pad, GstCaps * filter)
|
|||
}
|
||||
}
|
||||
|
||||
tmp = gst_pad_peer_get_caps (self->mask_sinkpad, NULL);
|
||||
tmp = gst_pad_peer_query_caps (self->mask_sinkpad, NULL);
|
||||
GST_LOG_OBJECT (pad, "mask sink accepted caps: %" GST_PTR_FORMAT, ret);
|
||||
if (tmp) {
|
||||
GstCaps *intersection, *tmp2;
|
||||
|
|
|
@ -327,7 +327,7 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc)
|
|||
goto no_nego_needed;
|
||||
|
||||
/* get the peer caps */
|
||||
peercaps = gst_pad_peer_get_caps (GST_BASE_SRC_PAD (basesrc), thiscaps);
|
||||
peercaps = gst_pad_peer_query_caps (GST_BASE_SRC_PAD (basesrc), thiscaps);
|
||||
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
|
||||
LOG_CAPS (basesrc, peercaps);
|
||||
if (peercaps && !gst_caps_is_any (peercaps)) {
|
||||
|
|
Loading…
Reference in a new issue