Commit d91f5e85 authored by Thiago Santos's avatar Thiago Santos

mpegtsbase: do not access variable after unref

Data might not exist anymore
parent 06d9b61f
......@@ -1039,6 +1039,7 @@ mpegts_base_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
gboolean res = TRUE;
gboolean hard;
MpegTSBase *base = GST_MPEGTS_BASE (parent);
gboolean is_sticky = GST_EVENT_IS_STICKY (event);
GST_DEBUG_OBJECT (base, "Got event %s",
gst_event_type_get_name (GST_EVENT_TYPE (event)));
......@@ -1078,7 +1079,7 @@ mpegts_base_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
}
/* Always return TRUE for sticky events */
if (GST_EVENT_IS_STICKY (event))
if (is_sticky)
res = TRUE;
return res;
......
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