Commit d712a2f4 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

imagefreeze: fix use-after-free on seek event

Get seqnum before unreffing the seek event.

https://bugzilla.gnome.org/show_bug.cgi?id=784486
parent f9f1a036
......@@ -573,6 +573,7 @@ gst_image_freeze_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
gboolean flush;
guint32 seqnum;
seqnum = gst_event_get_seqnum (event);
gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start,
&stop_type, &stop);
gst_event_unref (event);
......@@ -600,7 +601,6 @@ gst_image_freeze_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
}
}
seqnum = gst_event_get_seqnum (event);
if (flush) {
GstEvent *e;
......
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