compat: kill more uses of gst_pad_set_caps()
authorStefan Sauer <ensonic@users.sf.net>
Mon, 11 Feb 2013 21:52:25 +0000 (22:52 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Mon, 11 Feb 2013 21:54:22 +0000 (22:54 +0100)
gst/gstutils.c
libs/gst/base/gstbasesrc.c

index 8968024..daf1ba8 100644 (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
  *
  * 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.
index 2e2e780..af6b518 100644 (file)
@@ -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;
 }