[vlc-commits] dvdnav: replace hardcoded sleep values by VLC_TICK_FROM_MS()
Steve Lhomme
git at videolan.org
Fri Jul 6 16:07:15 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 13:04:00 2018 +0200| [c1b8956aabe24b24e3a26a823ca4d45f421b6169] | committer: Steve Lhomme
dvdnav: replace hardcoded sleep values by VLC_TICK_FROM_MS()
Easier to read and more explicit.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1b8956aabe24b24e3a26a823ca4d45f421b6169
---
modules/access/dvdnav.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 162462174e..c48264e5d2 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -884,7 +884,7 @@ static int Demux( demux_t *p_demux )
DemuxForceStill( p_demux );
p_sys->b_reset_pcr = true;
}
- vlc_tick_sleep( 40000 );
+ vlc_tick_sleep( VLC_TICK_FROM_MS(40) );
break;
}
@@ -1109,7 +1109,7 @@ static int Demux( demux_t *p_demux )
es_out_Control( p_demux->out, ES_OUT_GET_EMPTY, &b_empty );
if( !b_empty )
{
- vlc_tick_sleep( 40*1000 );
+ vlc_tick_sleep( VLC_TICK_FROM_MS(40) );
}
else
{
More information about the vlc-commits
mailing list