How to detect end and start of file

Bruno Gonzalez (aka stenyak) stenyak at
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> wrote:
> On Wed, 2013-07-10 at 09:20 +0200, Bruno Gonzalez (aka stenyak) wrote:
> Hi,
>> 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.
>  Cheers
>   -Tim
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

     Bruno Gonzalez | stenyak @ irc://

More information about the gstreamer-devel mailing list