mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
dvdemux: Unref seek event in any case
It would be leaked if no seek handler was currently set.
This commit is contained in:
parent
d62115e15e
commit
cfaedbc265
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue