gstpad: directly set the caps when pushing buffer with different caps.

This check is not necesarry as we are not negotiating anymore. And it can
be wrong if upstream can't produce this caps anymore, but downstream can
process them fine.
This commit is contained in:
Thijs Vermeir 2010-01-19 14:07:23 +01:00
parent ed1247b561
commit 053ada3308

View file

@ -4344,7 +4344,7 @@ gst_pad_push_data (GstPad * pad, gboolean is_buffer, void *data)
GST_DEBUG_OBJECT (pad, GST_DEBUG_OBJECT (pad,
"caps changed from %" GST_PTR_FORMAT " to %p %" GST_PTR_FORMAT, "caps changed from %" GST_PTR_FORMAT " to %p %" GST_PTR_FORMAT,
GST_PAD_CAPS (pad), caps, caps); GST_PAD_CAPS (pad), caps, caps);
if (G_UNLIKELY (!gst_pad_configure_src (pad, caps, TRUE))) if (G_UNLIKELY (!gst_pad_set_caps (pad, caps)))
goto not_negotiated; goto not_negotiated;
} }