How to detect end and start of file
t.i.m at zen.co.uk
Wed Jul 10 02:04:42 PDT 2013
On Wed, 2013-07-10 at 09:20 +0200, Bruno Gonzalez (aka stenyak) wrote:
> I'm reading mkv files with matroskademux.
> I would like to know when either the *end* (playing forwards) or
> *start* (playing backwards) of the mkv file have been reached.
> Currently I'm catching EOS events, but those can happen for more
> reasons than just "end of file". For example, the user wants to close
> the pipeline, so an EOS is sent even though we haven't reached the end
> or start of file.
> Any suggestions on how to detect Eof/Sof reliably?
You would typically wait for an EOS *message* on the pipeline's bus, not
More information about the gstreamer-devel