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 3d9c1a8fb52ae8197e874c72ca5a7f6e3e51de19..afdd02015cd9ad5f3443ef1c9cf3ef6334e97d99 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 6932185f84c17d34c2965a5d61638402e979e8a4..01b1db1fe017cdc975b41645e29d817cd466da24 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;