On Thu, 2017-06-15 at 04:44 -0700, naseeb_panghal wrote:
> 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
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.