gst/gstevent.c: Fix gst_mini_object_make_writable() and gst_event_copy() for events...
authorAlessandro Decina <alessandro@nnva.org>
Mon, 2 Oct 2006 08:37:24 +0000 (08:37 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 2 Oct 2006 08:37:24 +0000 (08:37 +0000)
commit86a6abe32d31ed52fb2035b96fd61a6006ad4d65
treeae808953506d0f9c15b2d8827b65248c39e28fd9
parent6d3d0584445afce5504abb0241ade2427f45a31c
gst/gstevent.c: Fix gst_mini_object_make_writable() and gst_event_copy() for events with event structures by setting ...

Original commit message from CVS:
Patch by: Alessandro Decina  <alessandro at nnva org>
* gst/gstevent.c: (_gst_event_copy):
Fix gst_mini_object_make_writable() and gst_event_copy() for events
with event structures by setting the parent refcount address of the
copied structure to the address of the refcount member of the newly
copied event rather than the address of the refcount member of the
original event. Fixes #358737.
* tests/check/gst/gstevent.c: (GST_START_TEST):
Unit test for the above.
ChangeLog
gst/gstevent.c
tests/check/gst/gstevent.c