mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
libs/gst/base/gstbasesrc.c: Don't unref the event after pushing it. Fixes #478401.
Original commit message from CVS: * libs/gst/base/gstbasesrc.c: (gst_base_src_send_event): Don't unref the event after pushing it. Fixes #478401.
This commit is contained in:
parent
78d79cae12
commit
85177c0511
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-09-19 Wim Taymans <wim.taymans@gmail.com>
|
||||
|
||||
* libs/gst/base/gstbasesrc.c: (gst_base_src_send_event):
|
||||
Don't unref the event after pushing it. Fixes #478401.
|
||||
|
||||
2007-09-19 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* .cvsignore:
|
||||
|
|
|
@ -1349,12 +1349,16 @@ gst_base_src_send_event (GstElement * element, GstEvent * event)
|
|||
/* insert a random custom event into the pipeline */
|
||||
GST_DEBUG_OBJECT (src, "pushing custom OOB event downstream");
|
||||
result = gst_pad_push_event (src->srcpad, event);
|
||||
/* we gave away the ref to the event in the push */
|
||||
event = NULL;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
done:
|
||||
gst_event_unref (event);
|
||||
/* if we still have a ref to the event, unref it now */
|
||||
if (event)
|
||||
gst_event_unref (event);
|
||||
|
||||
return result;
|
||||
|
||||
|
|
Loading…
Reference in a new issue