demux: hls: set start offset from manifest
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 16 Apr 2019 13:26:40 +0000 (15:26 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 16 Apr 2019 13:27:58 +0000 (15:27 +0200)
fixes time/length/seek after an early first seek
(data timestamps not known yet)

modules/demux/adaptive/Streams.cpp

index b532067..7f6f02a 100644 (file)
@@ -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;