After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 635637 - Allow to seek past fill-level when download buffering
Allow to seek past fill-level when download buffering
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Movie player
unspecified
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
: 614129 674135 (view as bug list)
Depends on: 635635 680183 685818
Blocks:
 
 
Reported: 2010-11-23 20:23 UTC by Bastien Nocera
Modified: 2014-06-04 13:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow to seek past fill-level when download buffering (3.13 KB, patch)
2010-11-23 20:25 UTC, Bastien Nocera
reviewed Details | Review
Allow to seek past fill-level when download buffering (3.52 KB, patch)
2010-11-26 19:11 UTC, Bastien Nocera
needs-work Details | Review
Allow to seek past fill-level when download buffering (3.04 KB, patch)
2012-07-16 23:56 UTC, Bastien Nocera
needs-work Details | Review
Allow to seek past fill-level when download buffering (3.86 KB, patch)
2012-07-18 17:04 UTC, Bastien Nocera
needs-work Details | Review
backend: Allow seeking past fill-level (4.29 KB, patch)
2012-07-19 15:24 UTC, Bastien Nocera
none Details | Review
backend: Allow seeking past fill-level (3.60 KB, patch)
2013-08-23 17:44 UTC, Bastien Nocera
needs-work Details | Review
backend: Allow seeking past fill-level (3.08 KB, patch)
2014-06-02 14:57 UTC, Bastien Nocera
none Details | Review
improved download buffering (6.28 KB, patch)
2014-06-03 20:30 UTC, Wim Taymans
none Details | Review

Description Bastien Nocera 2010-11-23 20:23:58 UTC
Untested patch attached.
Comment 1 Bastien Nocera 2010-11-23 20:25:21 UTC
Created attachment 175127 [details] [review]
Allow to seek past fill-level when download buffering
Comment 2 Philip Withnall 2010-11-24 20:13:12 UTC
Review of attachment 175127 [details] [review]:

I haven't tested it either, but our GStreamer dependency will need bumping to 0.10.31 due to gst_query_parse_nth_buffering_range().
Comment 3 Bastien Nocera 2010-11-26 19:11:28 UTC
Created attachment 175319 [details] [review]
Allow to seek past fill-level when download buffering
Comment 4 Bastien Nocera 2010-11-26 19:13:38 UTC
Comment on attachment 175127 [details] [review]
Allow to seek past fill-level when download buffering

Added the GStreamer req, but it's not good enough, and it completely fail to seek when seeking past the fill level, when it's supposed to be pushing the request to the source.

We'd need to pause again, seek, and wait for the fill to be good enough to play.
Comment 5 Bastien Nocera 2011-02-26 01:24:38 UTC
Not going to happen for 3.0, but might for a bug fix release, or 3.2.
Comment 6 Bastien Nocera 2011-04-03 23:41:24 UTC
*** Bug 614129 has been marked as a duplicate of this bug. ***
Comment 7 Bastien Nocera 2012-04-16 09:39:05 UTC
*** Bug 674135 has been marked as a duplicate of this bug. ***
Comment 8 Bastien Nocera 2012-07-16 23:56:48 UTC
Created attachment 218958 [details] [review]
Allow to seek past fill-level when download buffering
Comment 9 Bastien Nocera 2012-07-17 00:24:52 UTC
Comment on attachment 218958 [details] [review]
Allow to seek past fill-level when download buffering

Updated for master
Comment 10 Bastien Nocera 2012-07-18 17:04:25 UTC
Created attachment 219143 [details] [review]
Allow to seek past fill-level when download buffering
Comment 11 Bastien Nocera 2012-07-18 17:06:42 UTC
Comment on attachment 219143 [details] [review]
Allow to seek past fill-level when download buffering

needs-work as we still have a FIXME in the code for wtay.
We also need to make sure that seeking forward then seeking back changes the fill level to the maximum value in the current range.
Comment 12 Bastien Nocera 2012-07-19 15:24:57 UTC
Created attachment 219241 [details] [review]
backend: Allow seeking past fill-level

When download buffering
Comment 13 Bastien Nocera 2013-08-23 17:44:13 UTC
Created attachment 252932 [details] [review]
backend: Allow seeking past fill-level

When download buffering
Comment 14 Bastien Nocera 2013-08-23 17:44:58 UTC
Comment on attachment 252932 [details] [review]
backend: Allow seeking past fill-level

Updated for master, still waiting on GStreamer fixes.
Comment 15 Bastien Nocera 2014-06-02 14:57:41 UTC
Created attachment 277730 [details] [review]
backend: Allow seeking past fill-level

When download buffering
Comment 16 Bastien Nocera 2014-06-02 15:05:17 UTC
I've asked Wim to review the buffering code in totem, to make sure we don't regress:
<hadess> wtay_, the code to review would be totem master + the patch in that bug
<hadess> wtay_, the 2 functions to check, in src/backend/bacon-video-widget.c would be: bvw_handle_buffering_message and bvw_query_buffering_timeout
<hadess> wtay_, i want to double check that, when download buffering, i handle "i have enough buffer to play until the end of the stream" correctly, as well as "i have downloaded the whole media, and i can save it locally"
<wtay_> hadess, you want to start playing when it is estimated that no rebuffering will happen?
<hadess> wtay_, yes, when it can play until the end, without buffering again, given the current download rate
<wtay_> all right
Comment 17 Wim Taymans 2014-06-03 20:30:04 UTC
Created attachment 277831 [details] [review]
improved download buffering

This is an additional patch to improve download buffering some more. It needs to be used with latest master of GStreamer.
Comment 18 Bastien Nocera 2014-06-04 13:44:04 UTC
Merged, with some fixes for the comments.