[vlc-commits] [Git][videolan/vlc][master] demux: adaptive: we don't need to check availabilityStartTime

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Fri Mar 25 16:32:33 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
ab2c960d by Francois Cartegnie at 2022-03-25T14:43:42+00:00
demux: adaptive: we don't need to check availabilityStartTime

mandatory for templates and breaks with epoch 0
refs
https://livesim.dashif.org/livesim/sts_1647955042/sid_f95b592d/testpic_2s/Manifest.mpd

- - - - -


1 changed file:

- modules/demux/adaptive/playlist/SegmentTemplate.cpp


Changes:

=====================================
modules/demux/adaptive/playlist/SegmentTemplate.cpp
=====================================
@@ -232,13 +232,10 @@ bool SegmentTemplate::getSegmentNumberByTime(vlc_tick_t time, uint64_t *ret) con
         if( playlist->isLive() )
         {
             vlc_tick_t now = vlc_tick_from_sec(::time(nullptr));
-            if(playlist->availabilityStartTime.Get())
-            {
-                if(time >= playlist->availabilityStartTime.Get() && time < now)
-                    *ret = getLiveTemplateNumber(time, true);
-                else if(now - playlist->availabilityStartTime.Get() > time)
-                    *ret = getLiveTemplateNumber(time, false);
-            }
+            if(time >= playlist->availabilityStartTime.Get() && time < now)
+                *ret = getLiveTemplateNumber(time, true);
+            else if(now - playlist->availabilityStartTime.Get() > time)
+                *ret = getLiveTemplateNumber(time, false);
             else return false;
         }
         else



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab2c960d470a69d59a5ec1c44e30b17028705ffe

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab2c960d470a69d59a5ec1c44e30b17028705ffe
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list