Commit bed06b24 authored by Michael Smith's avatar Michael Smith

gst/gstmessage.c: When copying a message, set the parent_refcount of the...

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.
parent dde0d169
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:
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment