[vlc-commits] [Git][videolan/vlc][master] adaptive: BufferingLogic: fix typo in check

François Cartegnie (@fcartegnie) gitlab at videolan.org
Wed Jul 28 10:27:34 UTC 2021



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
1a2f550d by Alexandre Janniaux at 2021-07-28T09:31:15+00:00
adaptive: BufferingLogic: fix typo in check

../../modules/demux/adaptive/logic/BufferingLogic.cpp: In member function ‘uint64_t adaptive::logic::DefaultBufferingLogic::getLiveStartSegmentNumber(adaptive::playlist::BaseRepresentation*) const’:
../../modules/demux/adaptive/logic/BufferingLogic.cpp:363:30: warning: ‘this’ pointer is null [-Wnonnull]
  363 |         if(!timeline->isValid())
      |             ~~~~~~~~~~~~~~~~~^~

Typo from 573752cfad0e024806e29ccef23986aaff0166db

- - - - -


1 changed file:

- modules/demux/adaptive/logic/BufferingLogic.cpp


Changes:

=====================================
modules/demux/adaptive/logic/BufferingLogic.cpp
=====================================
@@ -360,7 +360,7 @@ uint64_t DefaultBufferingLogic::getLiveStartSegmentNumber(BaseRepresentation *re
             return segmentBase->getSequenceNumber();
 
         const Timescale timescale = rep->inheritTimescale();
-        if(!timeline->isValid())
+        if(!timescale.isValid())
             return std::numeric_limits<uint64_t>::max();
         const Segment *back = list.back();
         const stime_t bufferingstart = back->startTime.Get() + back->duration.Get() -



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

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




More information about the vlc-commits mailing list