element: unref event in default_send_event in case element has no pads

Spotted by  Haakon Sporsheim.
This commit is contained in:
Tim-Philipp Müller 2011-04-09 18:04:55 +01:00
parent 2401fe36fd
commit 3fc68cf9e8

View file

@ -1595,6 +1595,7 @@ gst_element_default_send_event (GstElement * element, GstEvent * event)
} else {
GST_CAT_INFO (GST_CAT_ELEMENT_PADS, "can't send %s event on element %s",
GST_EVENT_TYPE_NAME (event), GST_ELEMENT_NAME (element));
gst_event_unref (event);
}
return result;
}