From: Sebastian Dröge Date: Fri, 8 Jun 2012 13:36:40 +0000 (+0200) Subject: basesink: Use gst_pad_set_caps() instead of the manual event fiddling X-Git-Tag: RELEASE-0.11.93~358 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec7a0a7cf29e607501723d6e2b2327f909303d1f;p=platform%2Fupstream%2Fgstreamer.git basesink: Use gst_pad_set_caps() instead of the manual event fiddling --- diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index d1e9e70..f242f98 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -3963,8 +3963,7 @@ gst_base_sink_negotiate_pull (GstBaseSink * basesink) GST_DEBUG_OBJECT (basesink, "fixated to: %" GST_PTR_FORMAT, caps); if (gst_caps_is_fixed (caps)) { - if (!gst_pad_send_event (GST_BASE_SINK_PAD (basesink), - gst_event_new_caps (caps))) + if (!gst_pad_set_caps (GST_BASE_SINK_PAD (basesink), caps)) goto could_not_set_caps; result = TRUE;