GST_EVENT_FLUSH_START raised twice in single seek

Tim Müller tim at centricular.com
Thu Jun 15 13:57:34 UTC 2017


On Thu, 2017-06-15 at 04:44 -0700, naseeb_panghal wrote:

Hi,

> I have player created using gstreamer. 
> Source Element: filesrc(pull-mode)
> 
> when i perform seek then GST_EVENT_FLUSH_START is created twice. I
> confirmed it with gdb breakpoint.
> 
> I don't understand why it is raised twice. I have read almost all the
> documentation related to SEEK and FLUSH start event but not found any
> explanation.

The parser or demuxer's seek handler (called from the application
thread that pushed the seek event into the pipeline) will send a flush-
start event downstream and one upstream, as the parser/demuxer
streaming thread might currently be doing or preparing to do a pull()
or a push(). This way the streaming thread will bail out and stop
itself at the next possible opportunity, and the parser/demuxer can be
reconfigured to start from the new position.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
21-22 October 2017 in Prague, Czech Republic
http://gstreamer.freedesktop.org/conference/


More information about the gstreamer-devel mailing list