mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
element: unref event in default_send_event in case element has no pads
Spotted by Haakon Sporsheim.
This commit is contained in:
parent
2401fe36fd
commit
3fc68cf9e8
1 changed files with 1 additions and 0 deletions
|
@ -1595,6 +1595,7 @@ gst_element_default_send_event (GstElement * element, GstEvent * event)
|
||||||
} else {
|
} else {
|
||||||
GST_CAT_INFO (GST_CAT_ELEMENT_PADS, "can't send %s event on element %s",
|
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_TYPE_NAME (event), GST_ELEMENT_NAME (element));
|
||||||
|
gst_event_unref (event);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue