[gst-devel] decodebin, typefinding and seeking

Ronald S. Bultje rbultje at ronald.bitfreak.net
Wed May 11 13:27:58 CEST 2005


Hi Mark,

On Wed, 2005-05-11 at 22:04, Dezelon, Mark wrote:
> Here's what happens for me after a type is found:
>   * Filesrc curoffset is currently at end due to a prior seek.
>   * GST scheduler calls filesrc's get(), causing an EOF event.
>   * Message: "best typefind left after we got all data"
>   * Upstream filesrc seek is set to 104KB position.
>   * Downstream element is created, init'd and linked.
>   * Downstream element processes a DISCONTINUOUS event.
>   * Downstream element processes 104KB buffer.
>   * Downstream element processes an EOS event.

That sounds technically possible given the code, although very unlikely.
I can sort-of see this happening for a file between 100 and 200 kB,
though, now that you mention it, especially when this is not a mp3 file;
is that the case here?

> It appears that although filesrc is ready for reading starting at the
> 104KB position, the scheduler has already called filesrc's get(), thus
> resulting in an EOF event that's sent downstream.
> 
> Any thoughts?  (Thoughts may include "you're doing it all wrong" to
> "file a bug".)

I'd go for the "file a bug and attach a file" approach. :).

Ronald

-- 
Ronald S. Bultje <rbultje at ronald.bitfreak.net>





More information about the gstreamer-devel mailing list