Commit 85177c05 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent 78d79cae
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> 2007-09-19 Stefan Kost <ensonic@users.sf.net>
   
* .cvsignore: * .cvsignore:
......
...@@ -1349,12 +1349,16 @@ gst_base_src_send_event (GstElement * element, GstEvent * event) ...@@ -1349,12 +1349,16 @@ gst_base_src_send_event (GstElement * element, GstEvent * event)
/* insert a random custom event into the pipeline */ /* insert a random custom event into the pipeline */
GST_DEBUG_OBJECT (src, "pushing custom OOB event downstream"); GST_DEBUG_OBJECT (src, "pushing custom OOB event downstream");
result = gst_pad_push_event (src->srcpad, event); result = gst_pad_push_event (src->srcpad, event);
/* we gave away the ref to the event in the push */
event = NULL;
break; break;
default: default:
break; break;
} }
done: 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; return result;
......
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