gst/gstmessage.c: When copying a message, set the parent_refcount of the enclosed...
authorMichael Smith <msmith@xiph.org>
Mon, 6 Mar 2006 14:51:36 +0000 (14:51 +0000)
committerMichael Smith <msmith@xiph.org>
Mon, 6 Mar 2006 14:51:36 +0000 (14:51 +0000)
Original commit message from CVS:
* gst/gstmessage.c: (_gst_message_copy):
When copying a message, set the parent_refcount of the enclosed
structure to point at the copy, not the original message.

ChangeLog
gst/gstmessage.c

index 3d9c1a8..afdd020 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-06  Michael Smith  <msmith@fluendo.com>
+
+       * gst/gstmessage.c: (_gst_message_copy):
+         When copying a message, set the parent_refcount of the enclosed
+         structure to point at the copy, not the original message.
+
 2006-03-06  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/gstutils.h:
index 6932185..01b1db1 100644 (file)
@@ -250,7 +250,7 @@ _gst_message_copy (GstMessage * message)
   if (message->structure) {
     copy->structure = gst_structure_copy (message->structure);
     gst_structure_set_parent_refcount (copy->structure,
-        &message->mini_object.refcount);
+        &copy->mini_object.refcount);
   }
 
   return copy;