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 752132 - hls/m3u8: Update current position in all cases
hls/m3u8: Update current position in all cases
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 1.6.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-08 15:20 UTC by Edward Hervey
Modified: 2015-10-20 07:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
hls/m3u8: Update current position in all cases (4.13 KB, patch)
2015-07-08 15:20 UTC, Edward Hervey
none Details | Review
hls/m3u8: Update current position in all cases (4.18 KB, patch)
2015-07-13 09:44 UTC, Edward Hervey
committed Details | Review

Description Edward Hervey 2015-07-08 15:20:25 UTC
The current position wasn't consistently updated based on what was previously
outputted
Comment 1 Edward Hervey 2015-07-08 15:20:28 UTC
Created attachment 307083 [details] [review]
hls/m3u8: Update current position in all cases

In order to ensure the sequence_position will always be consistently updated,
store the current file duration.

This way, when we advance, we can always increment the position based on what
was previously outputted.
Comment 2 Edward Hervey 2015-07-13 09:44:45 UTC
Created attachment 307334 [details] [review]
hls/m3u8: Update current position in all cases

In order to ensure the sequence_position will always be consistently updated,
store the current file duration.

This way, when we advance, we can always increment the position based on what
was previously outputted.
Comment 3 Edward Hervey 2015-07-13 09:45:56 UTC
There was an issue in the first patch. There was the possibility of a NULL dereference if client->current_file was NULL
Comment 4 Sebastian Dröge (slomo) 2015-10-15 06:30:18 UTC
Comment on attachment 307334 [details] [review]
hls/m3u8: Update current position in all cases

Makes sense
Comment 5 Edward Hervey 2015-10-19 12:46:31 UTC
commit f7c4bb5ac63d03fc3131c86ed438b6f6d6992bcb
Author: Edward Hervey <edward@centricular.com>
Date:   Wed Jul 8 17:17:12 2015 +0200

    hls/m3u8: Update current position in all cases
    
    In order to ensure the sequence_position will always be consistently updated,
    store the current file duration.
    
    This way, when we advance, we can always increment the position based on what
    was previously outputted.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752132