dvdemux: Unref seek event in any case

It would be leaked if no seek handler was currently set.
This commit is contained in:
Sebastian Dröge 2016-06-03 13:18:31 +03:00
parent d62115e15e
commit cfaedbc265

View file

@ -1201,10 +1201,9 @@ gst_dvdemux_send_event (GstElement * element, GstEvent * event)
} else {
GST_OBJECT_UNLOCK (dvdemux);
if (dvdemux->seek_handler) {
if (dvdemux->seek_handler)
res = dvdemux->seek_handler (dvdemux, dvdemux->videosrcpad, event);
gst_event_unref (event);
}
gst_event_unref (event);
}
break;
}