Commit f09f614b authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: fix warning

parent 0ac74ba8
......@@ -134,7 +134,7 @@ bool DASHManager::updatePlaylist()
nextPlaylistupdate = now + (mininterval + (maxinterval - mininterval) / 2) / CLOCK_FREQ;
msg_Dbg(p_demux, "Updated MPD, next update in %" PRId64 "s (%" PRId64 "..%" PRId64 ")",
nextPlaylistupdate - now, mininterval/ CLOCK_FREQ, maxinterval/ CLOCK_FREQ );
(mtime_t) nextPlaylistupdate - now, mininterval/ CLOCK_FREQ, maxinterval/ CLOCK_FREQ );
return true;
}
......
......@@ -131,7 +131,7 @@ void Representation::runLocalUpdates(mtime_t /*currentplaybacktime*/, uint64_t n
nextPlaylistupdate = now + (mininterval + (maxinterval - mininterval) / 2) / CLOCK_FREQ;
msg_Dbg(playlist->getVLCObject(), "Updated playlist ID %s, next update in %" PRId64 "s",
getID().str().c_str(), nextPlaylistupdate - now);
getID().str().c_str(), (mtime_t) nextPlaylistupdate - now);
debug(playlist->getVLCObject(), 0);
}
......
......@@ -56,7 +56,7 @@ namespace hls
StreamFormat streamFormat;
bool b_live;
bool b_loaded;
mtime_t nextPlaylistupdate;
time_t nextPlaylistupdate;
Url playlistUrl;
Property<std::string> audio;
Property<std::string> video;
......
......@@ -143,7 +143,7 @@ bool SmoothManager::updatePlaylist()
nextPlaylistupdate = now + (mininterval + (maxinterval - mininterval) / 2) / CLOCK_FREQ;
// msg_Dbg(p_demux, "Updated Manifest, next update in %" PRId64 "s (%" PRId64 "..%" PRId64 ")",
// nextPlaylistupdate - now, mininterval/ CLOCK_FREQ, maxinterval/ CLOCK_FREQ );
// (mtime_t) nextPlaylistupdate - now, mininterval/ CLOCK_FREQ, maxinterval/ CLOCK_FREQ );
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment