[vlc-devel] [PATCH 3/3] demux: hls: debug media sequence number

Zhao Zhili quinkblack at foxmail.com
Sat Dec 16 16:17:42 CET 2017


From: Zhao Zhili <wantlamy at gmail.com>

EXT-X-MEDIA-SEQUENCE must not wrap. It's a common mistake in the real
world.
---
 modules/demux/hls/playlist/Parser.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index b549024..2d53c29 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -190,7 +190,7 @@ bool M3U8Parser::appendSegmentsFromPlaylistURI(vlc_object_t *p_obj, Representati
     return false;
 }
 
-void M3U8Parser::parseSegments(vlc_object_t *, Representation *rep, const std::list<Tag *> &tagslist)
+void M3U8Parser::parseSegments(vlc_object_t *p_obj, Representation *rep, const std::list<Tag *> &tagslist)
 {
     SegmentList *segmentList = new (std::nothrow) SegmentList(rep);
 
@@ -217,6 +217,7 @@ void M3U8Parser::parseSegments(vlc_object_t *, Representation *rep, const std::l
             case SingleValueTag::EXTXMEDIASEQUENCE:
             {
                 sequenceNumber = (static_cast<const SingleValueTag*>(tag))->getValue().decimal();
+                msg_Dbg(p_obj, "sequence number %" PRIu64, sequenceNumber);
             }
             break;
 
-- 
2.7.4





More information about the vlc-devel mailing list