[vlc-commits] demux: hls: set last update time on non master playlist

Francois Cartegnie git at videolan.org
Mon Jul 20 21:03:18 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul 10 18:29:37 2020 +0200| [84d97db95bde7e7c51c64ae688076d91ac3c2ad3] | committer: Francois Cartegnie

demux: hls: set last update time on non master playlist

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

 modules/demux/hls/playlist/Parser.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index 22e0ee41f1..5a6de6049d 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -551,7 +551,11 @@ M3U8 * M3U8Parser::parse(vlc_object_t *p_object, stream_t *p_stream, const std::
             tag->addAttribute(new Attribute("URI", playlisturl));
             createAndFillRepresentation(p_object, adaptSet, tag, tagslist);
             if(!adaptSet->getRepresentations().empty())
+            {
+                adaptSet->getRepresentations().front()->
+                    scheduleNextUpdate(std::numeric_limits<uint64_t>::max(), true);
                 period->addAdaptationSet(adaptSet);
+            }
             else
                 delete adaptSet;
             delete tag;



More information about the vlc-commits mailing list