transform: do pad_alloc fallback correctly

This commit is contained in:
Wim Taymans 2011-04-29 13:42:57 +02:00
parent 6ab7e6c15d
commit baebf253ad

View file

@ -1417,8 +1417,8 @@ gst_base_transform_prepare_output_buffer (GstBaseTransform * trans,
GST_DEBUG_OBJECT (trans, "doing alloc with caps %" GST_PTR_FORMAT,
oldcaps);
*out_buf = gst_buffer_ref (in_buf);
*out_buf = gst_buffer_new_and_alloc (outsize);
gst_buffer_set_caps (*out_buf, oldcaps);
#if 0
ret = gst_pad_alloc_buffer (trans->srcpad,
GST_BUFFER_OFFSET (in_buf), outsize, oldcaps, out_buf);