[Bug 763522] gst_element_query_position doesn't always return the right frame number

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Apr 8 22:37:33 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=763522

Thiago Sousa Santos <thiagossantos at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thiagossantos at gmail.com

--- Comment #1 from Thiago Sousa Santos <thiagossantos at gmail.com> ---
Ideally the sink should be the one replying to this but depending on the
elements involved (and I believe it is rare to see an element that supports the
DEFAULT format position reporting) a few things might happen:

1) The sink can't do the position in DEFAULT format and tries to do some
magical conversion of its current time to buffers and it might not be perfectly
accurate

2) The sink will ask upstream for the position, so the answer will be ahead of
the position in the sink. Suppose the sink is rendering buffer number 5,
upstream the decoder/demuxer are, at least, dealing with buffer number 6 or
greater.

I think this would explain this difference you see.


What exactly are you trying to do? Perhaps there is a better way.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list