vlc | branch: master | Francois Cartegnie <[email protected]> | Sun Apr  5 
20:37:11 2020 +0200| [a93072befb9e21daa320a53243e74a312fb62029] | committer: 
Francois Cartegnie

demux: adaptive: change assertion for failed updates

ref #24583

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

 modules/demux/adaptive/SegmentTracker.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/adaptive/SegmentTracker.cpp 
b/modules/demux/adaptive/SegmentTracker.cpp
index 7655d1621c..27d817ba1d 100644
--- a/modules/demux/adaptive/SegmentTracker.cpp
+++ b/modules/demux/adaptive/SegmentTracker.cpp
@@ -391,8 +391,8 @@ vlc_tick_t SegmentTracker::getMinAheadTime() const
             (void) rep->runLocalUpdates(resources);
 
         uint64_t startnumber = bufferingLogic->getStartSegmentNumber(rep);
-        assert(startnumber != std::numeric_limits<uint64_t>::max());
-        return rep->getMinAheadTime(startnumber);
+        if(startnumber != std::numeric_limits<uint64_t>::max())
+            return rep->getMinAheadTime(startnumber);
     }
     return 0;
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to