How to detect end and start of file
Bruno Gonzalez (aka stenyak)
stenyak at gmail.com
Wed Jul 10 02:38:53 PDT 2013
How would I then detect if the EOS bus message was generated because
of reaching the end of an mkv file (as opposed to being generated
because the user closed the render window, or anything else)?
On Wed, Jul 10, 2013 at 11:04 AM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
> 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
> intercept events.
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
http://www.stenyak.com | stenyak @ irc://irc.freenode.net
More information about the gstreamer-devel