[vlc-commits] sout:description: use VLC_TICK_INVALID to signal the start date is not set
Steve Lhomme
git at videolan.org
Tue Sep 18 15:56:11 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 15:04:48 2018 +0200| [c3784ca3c11d4399a6d8a9fff4199d4a924153e2] | committer: Steve Lhomme
sout:description: use VLC_TICK_INVALID to signal the start date is not set
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c3784ca3c11d4399a6d8a9fff4199d4a924153e2
---
modules/stream_out/description.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/description.c b/modules/stream_out/description.c
index 628a918e87..f22387b29d 100644
--- a/modules/stream_out/description.c
+++ b/modules/stream_out/description.c
@@ -86,7 +86,7 @@ static int Open( vlc_object_t *p_this )
free(p_sys);
return VLC_EGENERIC;
}
- p_sys->i_stream_start = 0;
+ p_sys->i_stream_start = VLC_TICK_INVALID;
return VLC_SUCCESS;
}
@@ -117,7 +117,7 @@ static void *Add( sout_stream_t *p_stream, const es_format_t *p_fmt )
TAB_APPEND( p_sys->data->i_es, p_sys->data->es, p_fmt_copy );
- if( p_sys->i_stream_start <= 0 )
+ if( p_sys->i_stream_start == VLC_TICK_INVALID )
p_sys->i_stream_start = vlc_tick_now();
return (void *)p_fmt_copy;
More information about the vlc-commits
mailing list