From aee0d2a2b3dc3c9572e7068beea49de662abace8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 8 Jun 2012 15:41:17 +0200 Subject: [PATCH] basesrc: Don't ignore the return value of gst_pad_set_caps() and call it after the vfunc --- libs/gst/base/gstbasesrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index c5fad37..2d99fd3 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -866,10 +866,11 @@ gst_base_src_set_caps (GstBaseSrc * src, GstCaps * caps) bclass = GST_BASE_SRC_GET_CLASS (src); gst_base_src_send_stream_start (src); - gst_pad_push_event (src->srcpad, gst_event_new_caps (caps)); if (bclass->set_caps) res = bclass->set_caps (src, caps); + if (res) + res = gst_pad_set_caps (src->srcpad, caps); return res; } -- 2.7.4