[vlc-commits] demux: hls: avoid redundant update of playlist
Zhao Zhili
git at videolan.org
Mon Dec 4 13:03:54 CET 2017
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Dec 1 17:52:53 2017 +0800| [390078318d4f62827a5f185bf922e9b03052a19b] | committer: Francois Cartegnie
demux: hls: avoid redundant update of playlist
Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=390078318d4f62827a5f185bf922e9b03052a19b
---
modules/demux/hls/playlist/Parser.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index 928962e626..b5490248c4 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -159,6 +159,12 @@ void M3U8Parser::createAndFillRepresentation(vlc_object_t *p_obj, BaseAdaptation
if(rep)
{
parseSegments(p_obj, rep, tagslist);
+ if(rep->isLive())
+ {
+ /* avoid update playlist immediately */
+ uint64_t startseq = rep->getLiveStartSegmentNumber(0);
+ rep->scheduleNextUpdate(startseq);
+ }
adaptSet->addRepresentation(rep);
}
}
More information about the vlc-commits
mailing list