gst/gstmessage.c: When copying a message, set the parent_refcount of the enclosed structure to point at the copy, not...

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.
This commit is contained in:
Michael Smith 2006-03-06 14:51:36 +00:00
parent dde0d169b5
commit bed06b24d8
2 changed files with 7 additions and 1 deletions

View file

@ -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:

View 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;