GSTBuffer offset contains -1 in 1.0.6

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Mar 26 08:00:21 PDT 2013


On Tue, 2013-03-26 at 15:47 +0100, Steffen.Roeber at hella.com wrote:

Hi Steffen,

> In 0.10.x I used the GstBuffer::offset member to retrieve the current
> frame number. This field is always -1 now. So how to get the frame
> index? 

Some more context would be nice.

Whether this is set or not depends a lot on the demuxer/parsers/decoder
involved, and possibly also on the file and how it's accessed. (Also in
0.10 btw). It's rarely reliable even when set.

 Cheers
  -Tim



More information about the gstreamer-devel mailing list