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

demux: adaptive: change assertion for failed updates

ref #24583

(cherry picked from commit a93072befb9e21daa320a53243e74a312fb62029)

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

 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 4098818316..0941bf9d80 100644
--- a/modules/demux/adaptive/SegmentTracker.cpp
+++ b/modules/demux/adaptive/SegmentTracker.cpp
@@ -391,8 +391,8 @@ mtime_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