From d211a2a67c6c5f6562b52bf64e3cb1b382112415 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 11 Feb 2013 22:52:25 +0100 Subject: [PATCH] compat: kill more uses of gst_pad_set_caps() --- gst/gstutils.c | 4 ++-- libs/gst/base/gstbasesrc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/gstutils.c b/gst/gstutils.c index 8968024..daf1ba8 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -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. diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 2e2e780..af6b518 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -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; } -- 2.7.4