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

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 14:05:40 2018 +0200| [fd69250993467483b9094b1a3bbb48ca949116fd] | committer: Steve Lhomme

decklink: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()

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

 modules/video_output/decklink.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index de7b869365..d0ddf916a4 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -723,7 +723,7 @@ static int OpenDecklink(vout_display_t *vd, decklink_sys_t *sys)
 
     /* start */
     result = sys->p_output->StartScheduledPlayback(
-        (vlc_tick_now() * sys->timescale) / CLOCK_FREQ, sys->timescale, 1.0);
+        SEC_FROM_VLC_TICK(vlc_tick_now() * sys->timescale), sys->timescale, 1.0);
     CHECK("Could not start playback");
 
     p_config->Release();



More information about the vlc-commits mailing list