[vlc-commits] demux:adaptive: don't cast a non vlc_tick_t value to vlc_tick_t

Steve Lhomme git at videolan.org
Fri Jul 6 09:20:38 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jun 11 12:46:34 2018 +0200| [a83035d64c8bb700719115bd84c0f3112fa5cba8] | committer: Steve Lhomme

demux:adaptive: don't cast a non vlc_tick_t value to vlc_tick_t

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

 modules/demux/dash/DASHManager.cpp            | 2 +-
 modules/demux/hls/playlist/Representation.cpp | 2 +-
 modules/demux/smooth/SmoothManager.cpp        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/demux/dash/DASHManager.cpp b/modules/demux/dash/DASHManager.cpp
index 795ff0555b..e9f619df81 100644
--- a/modules/demux/dash/DASHManager.cpp
+++ b/modules/demux/dash/DASHManager.cpp
@@ -84,7 +84,7 @@ void DASHManager::scheduleNextUpdate()
 
     nextPlaylistupdate = now + minbuffer / CLOCK_FREQ;
 
-    msg_Dbg(p_demux, "Updated MPD, next update in %" PRId64 "s", (vlc_tick_t) nextPlaylistupdate - now );
+    msg_Dbg(p_demux, "Updated MPD, next update in %" PRId64 "s", (int64_t) nextPlaylistupdate - now );
 }
 
 bool DASHManager::needsUpdate() const
diff --git a/modules/demux/hls/playlist/Representation.cpp b/modules/demux/hls/playlist/Representation.cpp
index 25f561f710..013078e427 100644
--- a/modules/demux/hls/playlist/Representation.cpp
+++ b/modules/demux/hls/playlist/Representation.cpp
@@ -127,7 +127,7 @@ void Representation::scheduleNextUpdate(uint64_t number)
     nextUpdateTime = now + minbuffer / CLOCK_FREQ;
 
     msg_Dbg(playlist->getVLCObject(), "Updated playlist ID %s, next update in %" PRId64 "s",
-            getID().str().c_str(), (vlc_tick_t) nextUpdateTime - now);
+            getID().str().c_str(), (int64_t) nextUpdateTime - now);
 
     debug(playlist->getVLCObject(), 0);
 }
diff --git a/modules/demux/smooth/SmoothManager.cpp b/modules/demux/smooth/SmoothManager.cpp
index 0cd159013d..b933083264 100644
--- a/modules/demux/smooth/SmoothManager.cpp
+++ b/modules/demux/smooth/SmoothManager.cpp
@@ -139,7 +139,7 @@ void SmoothManager::scheduleNextUpdate()
 
     nextPlaylistupdate = now + minbuffer / CLOCK_FREQ;
 
-    msg_Dbg(p_demux, "Updated playlist, next update in %" PRId64 "s", (vlc_tick_t) nextPlaylistupdate - now );
+    msg_Dbg(p_demux, "Updated playlist, next update in %" PRId64 "s", (int64_t) nextPlaylistupdate - now );
 }
 
 bool SmoothManager::needsUpdate() const



More information about the vlc-commits mailing list