[vlc-commits] demux: adaptive: fix aligned segments default
Francois Cartegnie
git at videolan.org
Thu May 14 15:30:24 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 13 19:33:01 2020 +0200| [385bdb080fa3108ffdba4c1dc6f742ffb4ecd4d0] | committer: Francois Cartegnie
demux: adaptive: fix aligned segments default
(cherry picked from commit 96f9b775290430550d9a9f90d58a91253c005ae0)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=385bdb080fa3108ffdba4c1dc6f742ffb4ecd4d0
---
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