[vlc-commits] sout:record: signal the start date not set using VLC_TICK_INVALID
Steve Lhomme
git at videolan.org
Tue Sep 18 15:56:12 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 15:12:19 2018 +0200| [dee289c962c6707a2cfcad97462a99d151c3c187] | committer: Steve Lhomme
sout:record: signal the start date not set using VLC_TICK_INVALID
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dee289c962c6707a2cfcad97462a99d151c3c187
---
modules/stream_out/record.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/record.c b/modules/stream_out/record.c
index c6d750c8ee..c101a0d593 100644
--- a/modules/stream_out/record.c
+++ b/modules/stream_out/record.c
@@ -145,7 +145,7 @@ static int Open( vlc_object_t *p_this )
}
}
- p_sys->i_date_start = -1;
+ p_sys->i_date_start = VLC_TICK_INVALID;
p_sys->i_size = 0;
#ifdef OPTIMIZE_MEMORY
p_sys->i_max_wait = VLC_TICK_FROM_SEC(5);
@@ -233,7 +233,7 @@ static int Send( sout_stream_t *p_stream, void *id, block_t *p_buffer )
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
- if( p_sys->i_date_start < 0 )
+ if( p_sys->i_date_start == VLC_TICK_INVALID )
p_sys->i_date_start = vlc_tick_now();
if( !p_sys->p_out &&
( vlc_tick_now() - p_sys->i_date_start > p_sys->i_max_wait ||
More information about the vlc-commits
mailing list