[gstreamer-bugs] [Bug 358737] _gst_event_copy sets the wrong parent_refcount on the child structure

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Oct 2 01:38:45 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=358737

  GStreamer | gstreamer (core) | Ver: HEAD CVS


Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #73743|none                        |committed
               Flag|                            |
  Attachment #73747|none                        |committed
               Flag|                            |
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |0.10.11




------- Comment #3 from Tim-Philipp Müller  2006-10-02 08:37 UTC -------
Thanks for the patch and the test case! Committed:

2006-10-02  Tim-Philipp Müller  <tim at centricular dot net>

        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.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list