[gstreamer-bugs] [Bug 627942] [queue2] wrong percent-filled estimation during on-disk buffering
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Aug 25 12:48:01 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=627942
GStreamer | gstreamer (core) | git
--- Comment #7 from Wim Taymans <wim.taymans at gmail.com> 2010-08-25 19:48:00 UTC ---
(In reply to comment #4)
> queue->max_level.bytes doesn't seem relevant in on-disk-buffering use-case,
> right?
It does. It is used to calculate how much percent of max_level bytes is
buffered.
>
> I think in that case the percent value should be calculated depending on the
> duration (in BYTES), if it is known. So something like:
>
> queue->cur_level.bytes * 100 / duration_in_bytes
>
> Opinions? Am I totally on the wrong track? ;)
Yeah, that's not right. The buffer filled percent is the amount of bytes in it
* 100 / max_level. Maybe you are confused about the fact that the level can be
100% when the file is only partially downloaded. The percentage is always based
on the filled level of the queue relative to max_level.bytes/time etc.
What exactly do you see that you think is wrong?
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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