compat: kill more uses of gst_pad_set_caps()

This commit is contained in:
Stefan Sauer 2013-02-11 22:52:25 +01:00
parent bd65fc0036
commit d211a2a67c
2 changed files with 3 additions and 3 deletions

View file

@ -2718,8 +2718,8 @@ gst_pad_peer_query_convert (GstPad * pad, GstFormat src_format, gint64 src_val,
* @filter: (allow-none): suggested #GstCaps, or NULL * @filter: (allow-none): suggested #GstCaps, or NULL
* *
* Gets the capabilities this pad can produce or consume. * Gets the capabilities this pad can produce or consume.
* Note that this method doesn't necessarily return the caps set by * Note that this method doesn't necessarily return the caps set by sending a
* gst_pad_set_caps() - use gst_pad_get_current_caps() for that instead. * 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 * 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 * the pad's CAPS query function, If the query fails, this function will return
* @filter, if not #NULL, otherwise ANY. * @filter, if not #NULL, otherwise ANY.

View file

@ -878,7 +878,7 @@ gst_base_src_set_caps (GstBaseSrc * src, GstCaps * caps)
res = bclass->set_caps (src, caps); res = bclass->set_caps (src, caps);
if (res) if (res)
res = gst_pad_set_caps (src->srcpad, caps); res = gst_pad_push_event (src->srcpad, gst_event_new_caps (caps));
return res; return res;
} }