ext/libpng/gstpngenc.*: Preallocate the output buffer so that g_memdup() and gst_buff...
authorAlessandro Decina <alessandro@nnva.org>
Tue, 29 Jan 2008 18:43:32 +0000 (18:43 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 29 Jan 2008 18:43:32 +0000 (18:43 +0000)
commit3ad8e778d7995fcb47f8edbc58b0db21331ec05e
tree48162ecce264d22cb005bbe662d2ff8a5391251b
parentbc1734ac89690cc08e025195cfcc3586665b2ae2
ext/libpng/gstpngenc.*: Preallocate the output buffer so that g_memdup() and gst_buffer_merge() aren't needed anymore...

Original commit message from CVS:
Patch by: Alessandro Decina <alessandro at nnva dot org>
* ext/libpng/gstpngenc.c: (user_write_data), (gst_pngenc_chain):
* ext/libpng/gstpngenc.h:
Preallocate the output buffer so that g_memdup() and
gst_buffer_merge() aren't needed anymore. This greatly improves
performances and fixes #512544.
ChangeLog
ext/libpng/gstpngenc.c
ext/libpng/gstpngenc.h