[vlc-commits] demux: adaptative: handle inconsistent numbering (hls)

Francois Cartegnie git at videolan.org
Mon Nov 23 22:36:16 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Nov 22 22:01:59 2015 +0100| [85b636e764abeac6d7599be9e2a01a1a9439716e] | committer: Francois Cartegnie

demux: adaptative: handle inconsistent numbering (hls)

HLS can have inconsistent numbering through playlists.
In that case, a datetime is used to provide date and time reference
for the first segment.
We need then to convert our segment numbers using that
reference to be able to switch to the correct segment
number.

Exemple:
http://b028.wpc.azureedge.net/80B028/Samples/0e8848ca-1db7-41a3-8867-fe911144c045/d34d8807-5597-47a1-8408-52ec5fc99027.ism/Manifest(format=m3u8-aapl-v3)

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

 modules/demux/adaptative/SegmentTracker.cpp        |   44 ++++++++++++--------
 modules/demux/adaptative/SegmentTracker.hpp        |    2 +-
 .../adaptative/playlist/BaseRepresentation.cpp     |    6 +++
 .../demux/adaptative/playlist/BaseRepresentation.h |    2 +
 .../adaptative/playlist/SegmentInformation.cpp     |    9 +++-
 .../adaptative/playlist/SegmentInformation.hpp     |    3 +-
 modules/demux/hls/playlist/HLSSegment.cpp          |    6 +++
 modules/demux/hls/playlist/HLSSegment.hpp          |    4 ++
 modules/demux/hls/playlist/Parser.cpp              |   14 +++++++
 modules/demux/hls/playlist/Representation.cpp      |   34 ++++++++++++++-
 modules/demux/hls/playlist/Representation.hpp      |    3 +-
 11 files changed, 104 insertions(+), 23 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=85b636e764abeac6d7599be9e2a01a1a9439716e


More information about the vlc-commits mailing list