[vlc-commits] demux: adaptive: change assertion for failed updates
Francois Cartegnie
git at videolan.org
Sun Apr 5 20:39:25 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | 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;
}
More information about the vlc-commits
mailing list