vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Thu Jun 14 12:59:37 2018 +0200| [17319d9effd1c45223abbe7e9a7bee805af0d5ed] | committer: Steve Lhomme
bluray: 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=17319d9effd1c45223abbe7e9a7bee805af0d5ed --- modules/access/bluray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/access/bluray.c b/modules/access/bluray.c index 5639963e6d..2c5b709351 100644 --- a/modules/access/bluray.c +++ b/modules/access/bluray.c @@ -2215,7 +2215,7 @@ static void blurayStillImage( demux_t *p_demux, unsigned i_timeout ) } /* avoid busy loops (read returns no data) */ - vlc_tick_sleep( 40000 ); + vlc_tick_sleep( VLC_TICK_FROM_MS(40) ); } static void blurayStreamSelect(demux_t *p_demux, uint32_t i_type, uint32_t i_id) @@ -2399,7 +2399,7 @@ static void blurayHandleEvent(demux_t *p_demux, const BD_EVENT *e) case BD_EVENT_IDLE: /* nothing to do (ex. BD-J is preparing menus, waiting user input or running animation) */ /* avoid busy loop (bd_read() returns no data) */ - vlc_tick_sleep( 40000 ); + vlc_tick_sleep( VLC_TICK_FROM_MS(40) ); break; default: _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits