From 824c70d35aeaad9ad70e88f1810749208824d2b2 Mon Sep 17 00:00:00 2001 From: Elliot Chen Date: Mon, 19 Jun 2023 18:15:49 +0800 Subject: [PATCH] subparse: forward seek event first and return if succeeded Part-of: --- subprojects/gst-plugins-base/gst/subparse/gstsubparse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/subparse/gstsubparse.c b/subprojects/gst-plugins-base/gst/subparse/gstsubparse.c index 994cf62d1a..81b183e705 100644 --- a/subprojects/gst-plugins-base/gst/subparse/gstsubparse.c +++ b/subprojects/gst-plugins-base/gst/subparse/gstsubparse.c @@ -273,6 +273,11 @@ gst_sub_parse_src_event (GstPad * pad, GstObject * parent, GstEvent * event) 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, FIXME: could use an index */ ret = gst_pad_push_event (self->sinkpad,