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

Francois Cartegnie git at videolan.org
Thu Jul 23 19:27:51 CEST 2020


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

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

(cherry picked from commit 84d97db95bde7e7c51c64ae688076d91ac3c2ad3)

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

 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 057e614aa5..67110e4cdb 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -533,7 +533,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