[vlc-commits] demux: adaptive: fix aligned segments default

Francois Cartegnie git at videolan.org
Thu May 14 10:18:53 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 13 19:33:01 2020 +0200| [96f9b775290430550d9a9f90d58a91253c005ae0] | committer: Francois Cartegnie

demux: adaptive: fix aligned segments default

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

 modules/demux/adaptive/playlist/BaseAdaptationSet.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/playlist/BaseAdaptationSet.cpp b/modules/demux/adaptive/playlist/BaseAdaptationSet.cpp
index b98022dbad..01fb3c3592 100644
--- a/modules/demux/adaptive/playlist/BaseAdaptationSet.cpp
+++ b/modules/demux/adaptive/playlist/BaseAdaptationSet.cpp
@@ -113,7 +113,7 @@ void BaseAdaptationSet::setBitswitchAble(bool b)
 
 bool BaseAdaptationSet::isSegmentAligned() const
 {
-    return segmentAligned.isSet() && segmentAligned.value();
+    return !segmentAligned.isSet() || segmentAligned.value();
 }
 
 bool BaseAdaptationSet::isBitSwitchable() const



More information about the vlc-commits mailing list