Commit 58efb5a9 authored by Ronald S. Bultje's avatar Ronald S. Bultje

gst/gstevent.c: Reference source object when copying events, since it'll be...

gst/gstevent.c: Reference source object when copying events, since it'll be dereferenced on event dereferencing as well.

Original commit message from CVS:
* gst/gstevent.c: (_gst_event_copy):
Reference source object when copying events, since it'll be
dereferenced on event dereferencing as well.
parent 66d5da4f
2005-01-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstevent.c: (_gst_event_copy):
Reference source object when copying events, since it'll be
dereferenced on event dereferencing as well.
2005-01-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* docs/gst/gstreamer-sections.txt:
......
......@@ -69,6 +69,9 @@ _gst_event_copy (GstEvent * event)
#endif
memcpy (copy, event, sizeof (GstEvent));
if (GST_EVENT_SRC (copy)) {
gst_object_ref (GST_EVENT_SRC (copy));
}
/* FIXME copy/ref additional fields */
switch (GST_EVENT_TYPE (event)) {
......
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