summaryrefslogtreecommitdiffstats
path: root/ext/libpng/gstpngenc.h
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro@nnva.org>2008-01-29 18:43:32 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-01-29 18:43:32 +0000
commit3ad8e778d7995fcb47f8edbc58b0db21331ec05e (patch)
tree48162ecce264d22cb005bbe662d2ff8a5391251b /ext/libpng/gstpngenc.h
parentbc1734ac89690cc08e025195cfcc3586665b2ae2 (diff)
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.
Diffstat (limited to 'ext/libpng/gstpngenc.h')
-rw-r--r--ext/libpng/gstpngenc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/libpng/gstpngenc.h b/ext/libpng/gstpngenc.h
index 571d16f6..848d15e8 100644
--- a/ext/libpng/gstpngenc.h
+++ b/ext/libpng/gstpngenc.h
@@ -44,6 +44,7 @@ struct _GstPngEnc
GstPad *sinkpad, *srcpad;
GstBuffer *buffer_out;
+ guint written;
png_structp png_struct_ptr;
png_infop png_info_ptr;