[vlc-commits] demux: hls: set start offset from manifest

Francois Cartegnie git at videolan.org
Tue Apr 16 15:28:15 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr 16 15:26:40 2019 +0200| [19be4819e72d321d81b57518d6a618b24d0dd1bd] | committer: Francois Cartegnie

demux: hls: set start offset from manifest

fixes time/length/seek after an early first seek
(data timestamps not known yet)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19be4819e72d321d81b57518d6a618b24d0dd1bd
---

 modules/demux/adaptive/Streams.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/adaptive/Streams.cpp b/modules/demux/adaptive/Streams.cpp
index b53206704d..7f6f02a6af 100644
--- a/modules/demux/adaptive/Streams.cpp
+++ b/modules/demux/adaptive/Streams.cpp
@@ -84,6 +84,7 @@ bool AbstractStream::init(const StreamFormat &format_, SegmentTracker *tracker,
                     segmentTracker->registerListener(this);
                     segmentTracker->notifyBufferingState(true);
                     connManager = conn;
+                    setTimeOffset(segmentTracker->getPlaybackTime());
                     return true;
                 }
                 delete commandsqueue;



More information about the vlc-commits mailing list