[vlc-commits] input: make the seekpoint seeking tolerance explicit to 3s using CLOCK_FREQ
Steve Lhomme
git at videolan.org
Fri Jul 6 09:21:00 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May 5 17:10:01 2018 +0200| [30edab8e53467bd9c8635934998f9ce1e9385135] | committer: Steve Lhomme
input: make the seekpoint seeking tolerance explicit to 3s using CLOCK_FREQ
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=30edab8e53467bd9c8635934998f9ce1e9385135
---
src/input/input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/input.c b/src/input/input.c
index 89eca98a4b..838ae108cb 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2147,7 +2147,7 @@ static bool Control( input_thread_t *p_input,
int64_t i_input_time = var_GetInteger( p_input, "time" );
if( i_seekpoint_time >= 0 && i_input_time >= 0 )
{
- if( i_input_time < i_seekpoint_time + 3000000 )
+ if( i_input_time < i_seekpoint_time + VLC_TICK_FROM_SEC(3) )
i_seekpoint--;
}
else
More information about the vlc-commits
mailing list