mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
baseparse: Fix seek event leaking
This commit is contained in:
parent
d49e8731c0
commit
2e4ed802a7
1 changed files with 3 additions and 2 deletions
|
@ -1575,12 +1575,13 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event)
|
||||||
* it directly or fail. For TIME, try upstream, but do it ourselves if
|
* it directly or fail. For TIME, try upstream, but do it ourselves if
|
||||||
* it fails upstream */
|
* it fails upstream */
|
||||||
if (format != GST_FORMAT_TIME) {
|
if (format != GST_FORMAT_TIME) {
|
||||||
gst_event_ref (event);
|
|
||||||
return gst_pad_push_event (parse->sinkpad, event);
|
return gst_pad_push_event (parse->sinkpad, event);
|
||||||
} else {
|
} else {
|
||||||
gst_event_ref (event);
|
gst_event_ref (event);
|
||||||
if (gst_pad_push_event (parse->sinkpad, event))
|
if (gst_pad_push_event (parse->sinkpad, event)) {
|
||||||
|
gst_event_unref (event);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get flush flag */
|
/* get flush flag */
|
||||||
|
|
Loading…
Reference in a new issue