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