basesink: Use gst_pad_set_caps() instead of the manual event fiddling

This commit is contained in:
Sebastian Dröge 2012-06-08 15:36:40 +02:00
parent 183cc7e3bf
commit ec7a0a7cf2

View file

@ -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;