ext/libpng/gstpngenc.c: Copy over buffer properties. Fixes #158832

Original commit message from CVS:
patch by: Edward Hervey <bilboed@bilboed.com>
* ext/libpng/gstpngenc.c:
Copy over buffer properties.  Fixes #158832
This commit is contained in:
Edward Hervey 2004-11-23 14:24:03 +00:00 committed by Thomas Vander Stichele
parent 7aba61963c
commit 20bc7b33cc
2 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,14 @@
2004-11-23 Thomas Vander Stichele <thomas at apestaart dot org>
patch by: Edward Hervey <bilboed@bilboed.com>
* ext/libpng/gstpngenc.c:
Copy over buffer properties. Fixes #158832
2004-11-23 Thomas Vander Stichele <thomas at apestaart dot org>
patch by: Tim-Philipp Müller <t.i.m@zen.co.uk>
* ext/dvdread/dvdreadsrc.c:
Fixes invalid reads (#158462)

View file

@ -305,6 +305,7 @@ gst_pngenc_chain (GstPad * pad, GstData * _data)
png_destroy_info_struct (pngenc->png_struct_ptr, &pngenc->png_info_ptr);
png_destroy_write_struct (&pngenc->png_struct_ptr, (png_infopp) NULL);
gst_buffer_stamp (pngenc->buffer_out, buf);
gst_buffer_unref (buf);
gst_pad_push (pngenc->srcpad, GST_DATA (pngenc->buffer_out));