[vlc-commits] demux: adaptive: remove double check
Francois Cartegnie
git at videolan.org
Mon Jul 20 21:03:14 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jul 20 09:38:44 2020 +0200| [e04bb5159625d000a5eac0d156ebb2d2d4088798] | committer: Francois Cartegnie
demux: adaptive: remove double check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e04bb5159625d000a5eac0d156ebb2d2d4088798
---
modules/demux/adaptive/SegmentTracker.cpp | 13 -------------
modules/demux/adaptive/SegmentTracker.hpp | 1 -
modules/demux/adaptive/Streams.cpp | 6 ------
3 files changed, 20 deletions(-)
diff --git a/modules/demux/adaptive/SegmentTracker.cpp b/modules/demux/adaptive/SegmentTracker.cpp
index 2bac8d17f2..dd2f72711b 100644
--- a/modules/demux/adaptive/SegmentTracker.cpp
+++ b/modules/demux/adaptive/SegmentTracker.cpp
@@ -149,19 +149,6 @@ const Role & SegmentTracker::getStreamRole() const
return adaptationSet->getRole();
}
-bool SegmentTracker::segmentsListReady() const
-{
- BaseRepresentation *rep = curRepresentation;
- if(!rep)
- rep = logic->getNextRepresentation(adaptationSet, NULL);
- if(rep && rep->getPlaylist()->isLive())
- {
- assert(curNumber != std::numeric_limits<uint64_t>::max());
- return rep->getMinAheadTime(curNumber) > 0;
- }
- return true;
-}
-
void SegmentTracker::reset()
{
notify(SegmentTrackerEvent(curRepresentation, NULL));
diff --git a/modules/demux/adaptive/SegmentTracker.hpp b/modules/demux/adaptive/SegmentTracker.hpp
index 54555c96f8..ba2955a1e7 100644
--- a/modules/demux/adaptive/SegmentTracker.hpp
+++ b/modules/demux/adaptive/SegmentTracker.hpp
@@ -127,7 +127,6 @@ namespace adaptive
const std::string & getStreamDescription() const;
const std::string & getStreamLanguage() const;
const Role & getStreamRole() const;
- bool segmentsListReady() const;
void reset();
SegmentChunk* getNextChunk(bool, AbstractConnectionManager *);
bool setPositionByTime(vlc_tick_t, bool, bool);
diff --git a/modules/demux/adaptive/Streams.cpp b/modules/demux/adaptive/Streams.cpp
index 4876894444..c153a68618 100644
--- a/modules/demux/adaptive/Streams.cpp
+++ b/modules/demux/adaptive/Streams.cpp
@@ -377,12 +377,6 @@ AbstractStream::buffering_status AbstractStream::doBufferize(vlc_tick_t nz_deadl
segmentTracker->notifyBufferingLevel(i_min_buffering, i_demuxed, i_total_buffering);
if(i_demuxed < i_total_buffering) /* not already demuxed */
{
- if(!segmentTracker->segmentsListReady()) /* Live Streams */
- {
- vlc_mutex_unlock(&lock);
- return AbstractStream::buffering_suspended;
- }
-
vlc_tick_t nz_extdeadline = fakeEsOut()->commandsQueue()->getBufferingLevel() +
(i_total_buffering - i_demuxed) / 4;
nz_deadline = std::max(nz_deadline, nz_extdeadline);
More information about the vlc-commits
mailing list