basesink: Use gst_pad_set_caps() instead of the manual event fiddling
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Jun 2012 13:36:40 +0000 (15:36 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Jun 2012 13:36:40 +0000 (15:36 +0200)
libs/gst/base/gstbasesink.c

index d1e9e70..f242f98 100644 (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;