[vlc-commits] video_output: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 14:25:02 2018 +0200| [5f7f524f63bedc2f25ec57a521b4614cf13785f7] | committer: Steve Lhomme

video_output: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

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

 src/video_output/video_output.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index acea70ac74..e6c0677ed4 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -855,12 +855,12 @@ static int ThreadDisplayPreparePicture(vout_thread_t *vout, bool reuse, bool fra
                     const vlc_tick_t predicted = vlc_tick_now() + 0; /* TODO improve */
                     const vlc_tick_t late = predicted - decoded->date;
                     if (late > late_threshold) {
-                        msg_Warn(vout, "picture is too late to be displayed (missing %"PRId64" ms)", late/1000);
+                        msg_Warn(vout, "picture is too late to be displayed (missing %"PRId64" ms)", MS_FROM_VLC_TICK(late));
                         picture_Release(decoded);
                         vout_statistic_AddLost(&vout->p->statistic, 1);
                         continue;
                     } else if (late > 0) {
-                        msg_Dbg(vout, "picture might be displayed late (missing %"PRId64" ms)", late/1000);
+                        msg_Dbg(vout, "picture might be displayed late (missing %"PRId64" ms)", MS_FROM_VLC_TICK(late));
                     }
                 }
                 if (!VideoFormatIsCropArEqual(&decoded->format, &vout->p->filter.format))



More information about the vlc-commits mailing list