diff options
author | Julien Moutte <julien@moutte.net> | 2004-01-09 19:29:35 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2004-01-09 19:29:35 +0000 |
commit | 7277b505fc665f1d3256aaeb17685c555c704afe (patch) | |
tree | 8d95fba30c82eca459c9f188dec11239299ee897 /ext | |
parent | 6b9e58c9e46c327bdc9a3db2fe32c27898fd3039 (diff) | |
download | gst-plugins-bad-7277b505fc665f1d3256aaeb17685c555c704afe.tar.gz gst-plugins-bad-7277b505fc665f1d3256aaeb17685c555c704afe.tar.bz2 gst-plugins-bad-7277b505fc665f1d3256aaeb17685c555c704afe.zip |
ext/hermes/gstcolorspace.c: Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
Original commit message from CVS:
* ext/hermes/gstcolorspace.c: (gst_colorspace_chain):
Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/hermes/gstcolorspace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/hermes/gstcolorspace.c b/ext/hermes/gstcolorspace.c index 7a42e905..e4ea1206 100644 --- a/ext/hermes/gstcolorspace.c +++ b/ext/hermes/gstcolorspace.c @@ -405,8 +405,9 @@ gst_colorspace_chain (GstPad *pad,GstData *_data) dest_bytes = ((space->destbpp+7)/8); src_bytes = ((space->srcbpp+7)/8); - outbuf = gst_buffer_new_and_alloc ((size * space->destbpp)/8); - + outbuf = gst_pad_alloc_buffer (gst_pad_get_peer (pad), GST_BUFFER_OFFSET_NONE, + (size * space->destbpp)/8); + if (space->type == GST_COLORSPACE_YUV_RGB) { gst_colorspace_convert (space->converter, GST_BUFFER_DATA (buf), GST_BUFFER_DATA (outbuf)); } @@ -528,4 +529,3 @@ GST_PLUGIN_DEFINE ( "LGPL", GST_PACKAGE, GST_ORIGIN) - |