[vlc-commits] input: convert "short-jump-size" in seconds to "time-offset" in ticks using vlc_tick_from_sec()
Steve Lhomme
git at videolan.org
Tue Jul 3 15:30:46 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 3 14:32:08 2018 +0200| [87fa06225f8c3e3677e372a6c38d8d129de3d64b] | committer: Steve Lhomme
input: convert "short-jump-size" in seconds to "time-offset" in ticks using vlc_tick_from_sec()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87fa06225f8c3e3677e372a6c38d8d129de3d64b
---
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 f279ea78a8..89eca98a4b 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1791,7 +1791,7 @@ static void ControlNav( input_thread_t *p_input, int i_type )
/* Seek or change volume if the input doesn't have navigation or viewpoint */
if( seek_direction != 0 )
{
- vlc_tick_t it = CLOCK_FREQ * seek_direction * var_InheritInteger( p_input, "short-jump-size" );
+ vlc_tick_t it = vlc_tick_from_sec( seek_direction * var_InheritInteger( p_input, "short-jump-size" ) );
var_SetInteger( p_input, "time-offset", it );
}
else
More information about the vlc-commits
mailing list