[vlc-commits] demux: adaptive: missing flags propagation using MimeDemuxer

Francois Cartegnie git at videolan.org
Wed Oct 23 16:01:31 CEST 2019


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 23 14:47:41 2019 +0200| [20e3a758342663a81b08cdb34c03eb3d169384bc] | committer: Francois Cartegnie

demux: adaptive: missing flags propagation using MimeDemuxer

refs
http://artelive-lh.akamaihd.net/i/artelive_fr@344805/master.m3u8

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

 NEWS                                        | 1 +
 modules/demux/adaptive/plumbing/Demuxer.cpp | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/NEWS b/NEWS
index 16132d1413..931fcd4e4f 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ Core:
 Demux:
  * Fix TTML entities not passed to decoder
  * Misc raw H264/HEVC frame rate fixes
+ * Fixed adaptive regression on TS format change (mostly HLS)
 
 Packetizers:
  * Fixes H264/HEVC incomplete draining in some cases
diff --git a/modules/demux/adaptive/plumbing/Demuxer.cpp b/modules/demux/adaptive/plumbing/Demuxer.cpp
index 6c6ca8cd2f..91c5cef175 100644
--- a/modules/demux/adaptive/plumbing/Demuxer.cpp
+++ b/modules/demux/adaptive/plumbing/Demuxer.cpp
@@ -123,6 +123,11 @@ bool MimeDemuxer::create()
     if(!demuxer || !demuxer->create())
         return false;
 
+    b_startsfromzero = demuxer->alwaysStartsFromZero();
+    b_reinitsonseek = demuxer->needsRestartOnSeek();
+    b_alwaysrestarts = demuxer->needsRestartOnEachSegment();
+    b_candetectswitches = !demuxer->needsRestartOnSwitch();
+
     return true;
 }
 



More information about the vlc-commits mailing list