basetransform: improve prepare_output_buffer
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Feb 2012 12:10:27 +0000 (13:10 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Feb 2012 12:10:27 +0000 (13:10 +0100)
commitd6dfb07692ba30581768c89ea1bd50673ab5bb30
tree0e5e2da1281ad5527db40216f8652b2c0f562386
parentdd9cc4295e43e60f93d492abd2e74d966b5cfe15
basetransform: improve prepare_output_buffer

Clean up the prepare_output_buffer function.
Reuse the input buffer when it is writable and when doing an
in-place but non-passthrough transform.
Move the copy-metadata function call to the prepare_output_buffer default
function. If subclasses implement a custom prepare_output_buffer, they must also
copy the metadata themselves.
Remove a useless memory copy because prepare_output_buffer already did that.
libs/gst/base/gstbasetransform.c