[vlc-commits] [Git][videolan/vlc][master] demux: adaptive: start with lowest non audio on NearOptimal Logic
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Mon Jul 12 15:35:40 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
e469c589 by Francois Cartegnie at 2021-07-12T15:16:32+00:00
demux: adaptive: start with lowest non audio on NearOptimal Logic
- - - - -
1 changed file:
- modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp
Changes:
=====================================
modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp
=====================================
@@ -119,6 +119,13 @@ BaseRepresentation *NearOptimalAdaptationLogic::getNextRepresentation(BaseAdapta
if(prevRep == nullptr) /* Starting */
{
m = selector.select(adaptSet, bps);
+ if(m == lowest)
+ {
+ /* Handle HLS specific cases where the lowest is audio only. Try to pick first A+V */
+ BaseRepresentation *n = selector.higher(adaptSet, m);
+ if(m != n && m->getCodecs().size() == 1 && n->getCodecs().size() > 1)
+ m = n;
+ }
}
else
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e469c589a7c1ec61ff38d746ff8ef073ac33b9c3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e469c589a7c1ec61ff38d746ff8ef073ac33b9c3
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list