mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
baseparse: fix seek event ref handling
This commit is contained in:
parent
b4f1778a7d
commit
dc80b52372
1 changed files with 2 additions and 2 deletions
|
@ -696,6 +696,8 @@ gst_base_parse_src_event (GstPad * pad, GstEvent * event)
|
||||||
|
|
||||||
if (!handled)
|
if (!handled)
|
||||||
ret = gst_pad_event_default (pad, event);
|
ret = gst_pad_event_default (pad, event);
|
||||||
|
else
|
||||||
|
gst_event_unref (event);
|
||||||
|
|
||||||
gst_object_unref (parse);
|
gst_object_unref (parse);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -724,7 +726,6 @@ gst_base_parse_src_eventfunc (GstBaseParse * parse, GstEvent * event)
|
||||||
{
|
{
|
||||||
if (bclass->is_seekable (parse)) {
|
if (bclass->is_seekable (parse)) {
|
||||||
handled = gst_base_parse_handle_seek (parse, event);
|
handled = gst_base_parse_handle_seek (parse, event);
|
||||||
gst_event_unref (event);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2066,7 +2067,6 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue