[vlc-commits] demux: adaptive: add needsUpdate playlist property
Francois Cartegnie
git at videolan.org
Wed Jan 23 12:23:58 CET 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 23 12:02:48 2019 +0100| [00061db7bb7525f63eca83113f983d57b973c0ad] | committer: Francois Cartegnie
demux: adaptive: add needsUpdate playlist property
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=00061db7bb7525f63eca83113f983d57b973c0ad
---
modules/demux/adaptive/PlaylistManager.cpp | 3 ++-
modules/demux/adaptive/playlist/AbstractPlaylist.cpp | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
index 3861e55e98..da234d052a 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -364,7 +364,8 @@ bool PlaylistManager::setPosition(vlc_tick_t time)
bool PlaylistManager::needsUpdate() const
{
- return playlist->isLive() && (failedupdates < 3);
+ return playlist->needsUpdates() &&
+ playlist->isLive() && (failedupdates < 3);
}
void PlaylistManager::scheduleNextUpdate()
diff --git a/modules/demux/adaptive/playlist/AbstractPlaylist.cpp b/modules/demux/adaptive/playlist/AbstractPlaylist.cpp
index a124d68fef..539d23312a 100644
--- a/modules/demux/adaptive/playlist/AbstractPlaylist.cpp
+++ b/modules/demux/adaptive/playlist/AbstractPlaylist.cpp
@@ -46,7 +46,7 @@ AbstractPlaylist::AbstractPlaylist (vlc_object_t *p_object_) :
minBufferTime = 0;
timeShiftBufferDepth.Set( 0 );
suggestedPresentationDelay.Set( 0 );
- b_needsUpdates = false;
+ b_needsUpdates = true;
}
AbstractPlaylist::~AbstractPlaylist()
More information about the vlc-commits
mailing list