subparse: forward seek event first and return if succeeded

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4889>
This commit is contained in:
Elliot Chen 2023-06-19 18:15:49 +08:00 committed by GStreamer Marge Bot
parent dabce9635d
commit 824c70d35a

View file

@ -273,6 +273,11 @@ gst_sub_parse_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
goto beach; goto beach;
} }
/* Forward seek event first and return if succeeded */
ret = gst_pad_event_default (pad, parent, event);
if (ret)
break;
/* Convert that seek to a seeking in bytes at position 0, /* Convert that seek to a seeking in bytes at position 0,
FIXME: could use an index */ FIXME: could use an index */
ret = gst_pad_push_event (self->sinkpad, ret = gst_pad_push_event (self->sinkpad,