[vlc-commits] sout:record: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()
Steve Lhomme
git at videolan.org
Thu Jul 5 16:57:46 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 15:13:32 2018 +0200| [be4463d54c413a97905c8e9943c69e15129051c5] | committer: Steve Lhomme
sout:record: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be4463d54c413a97905c8e9943c69e15129051c5
---
modules/stream_out/record.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/stream_out/record.c b/modules/stream_out/record.c
index 84ce815811..0b52c54be5 100644
--- a/modules/stream_out/record.c
+++ b/modules/stream_out/record.c
@@ -240,7 +240,7 @@ static int Send( sout_stream_t *p_stream, void *id, block_t *p_buffer )
p_sys->i_size > p_sys->i_max_size ) )
{
msg_Dbg( p_stream, "Starting recording, waited %ds and %dbyte",
- (int)((vlc_tick_now() - p_sys->i_date_start)/CLOCK_FREQ), (int)p_sys->i_size );
+ (int)SEC_FROM_VLC_TICK(vlc_tick_now() - p_sys->i_date_start), (int)p_sys->i_size );
OutputStart( p_stream );
}
More information about the vlc-commits
mailing list