mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-13 19:44:10 +00:00
jpegdec: Unref event if the parent element disappeared
This commit is contained in:
parent
4c36ca30b2
commit
b784173e4a
1 changed files with 3 additions and 1 deletions
|
@ -1651,8 +1651,10 @@ gst_jpeg_dec_src_event (GstPad * pad, GstEvent * event)
|
|||
gboolean res;
|
||||
|
||||
dec = GST_JPEG_DEC (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (dec == NULL))
|
||||
if (G_UNLIKELY (dec == NULL)) {
|
||||
gst_event_unref (event);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_QOS:{
|
||||
|
|
Loading…
Reference in a new issue