mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
dde0d169b5
commit
bed06b24d8
2 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
©->mini_object.refcount);
|
||||
}
|
||||
|
||||
return copy;
|
||||
|
|
Loading…
Reference in a new issue