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 782228 - adaptivedemux: Implement GST_SEEK_TYPE_END usage for live
adaptivedemux: Implement GST_SEEK_TYPE_END usage for live
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-05-05 16:29 UTC by Edward Hervey
Modified: 2017-05-09 07:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adaptivedemux: Implement GST_SEEK_TYPE_END usage for live (2.65 KB, patch)
2017-05-05 16:29 UTC, Edward Hervey
committed Details | Review

Description Edward Hervey 2017-05-05 16:29:12 UTC
See commit
Comment 1 Edward Hervey 2017-05-05 16:29:18 UTC
Created attachment 351216 [details] [review]
adaptivedemux: Implement GST_SEEK_TYPE_END usage for live

When dealing with live streams, we can't rely on GstSegment calculation
since it uses the segment duration to calculate the absolute values.

But since we are dealing with live *and* we know the ranges, we can
compute the absolute seeking values using the range stop (i.e. "now")
as the END position.

Allows seeking back to "live" by using start_type:GST_SEEK_TYPE_END
and start:0
Comment 2 Edward Hervey 2017-05-09 07:04:22 UTC
commit df60e122037a7eed9604a91c9bed5abe93d1e50c
Author: Edward Hervey <edward@centricular.com>
Date:   Fri May 5 18:25:43 2017 +0200

    adaptivedemux: Implement GST_SEEK_TYPE_END usage for live
    
    When dealing with live streams, we can't rely on GstSegment calculation
    since it uses the segment duration to calculate the absolute values.
    
    But since we are dealing with live *and* we know the ranges, we can
    compute the absolute seeking values using the range stop (i.e. "now")
    as the END position.
    
    Allows seeking back to "live" by using start_type:GST_SEEK_TYPE_END
    and start:0
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782228