mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
compat: kill more uses of gst_pad_set_caps()
This commit is contained in:
parent
bd65fc0036
commit
d211a2a67c
2 changed files with 3 additions and 3 deletions
|
@ -2718,8 +2718,8 @@ gst_pad_peer_query_convert (GstPad * pad, GstFormat src_format, gint64 src_val,
|
|||
* @filter: (allow-none): suggested #GstCaps, or NULL
|
||||
*
|
||||
* Gets the capabilities this pad can produce or consume.
|
||||
* Note that this method doesn't necessarily return the caps set by
|
||||
* gst_pad_set_caps() - use gst_pad_get_current_caps() for that instead.
|
||||
* Note that this method doesn't necessarily return the caps set by sending a
|
||||
* gst_event_new_caps() - use gst_pad_get_current_caps() for that instead.
|
||||
* gst_pad_query_caps returns all possible caps a pad can operate with, using
|
||||
* the pad's CAPS query function, If the query fails, this function will return
|
||||
* @filter, if not #NULL, otherwise ANY.
|
||||
|
|
|
@ -878,7 +878,7 @@ gst_base_src_set_caps (GstBaseSrc * src, GstCaps * caps)
|
|||
res = bclass->set_caps (src, caps);
|
||||
|
||||
if (res)
|
||||
res = gst_pad_set_caps (src->srcpad, caps);
|
||||
res = gst_pad_push_event (src->srcpad, gst_event_new_caps (caps));
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue