[vlc-commits] adaptive: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:34 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 15 07:14:37 2018 +0200| [b599022a6b6fd093e9454078228f5af3018921aa] | committer: Steve Lhomme

adaptive: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()

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

 modules/demux/adaptive/plumbing/CommandsQueue.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/plumbing/CommandsQueue.cpp b/modules/demux/adaptive/plumbing/CommandsQueue.cpp
index b20cf885d2..566f696b2b 100644
--- a/modules/demux/adaptive/plumbing/CommandsQueue.cpp
+++ b/modules/demux/adaptive/plumbing/CommandsQueue.cpp
@@ -234,7 +234,7 @@ EsOutMetaCommand * CommandsFactory::createEsOutMetaCommand( int group, const vlc
 std::ostream& operator<<(std::ostream& ostr, const std::list<AbstractCommand *>& list)
 {
     for (auto &i : list) {
-        ostr << "[" << i->getType() << "]" << (i->getTime() /CLOCK_FREQ) << " ";
+        ostr << "[" << i->getType() << "]" << SEC_FROM_VLC_TICK(i->getTime()) << " ";
     }
     return ostr;
 }



More information about the vlc-commits mailing list