[vlc-commits] macosx: Fix timer interval value in ScrollingClipView

Marvin Scholz git at videolan.org
Fri Feb 9 00:34:16 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Feb  9 00:33:49 2018 +0100| [201542ff729d489bdd6b0337e29d6a7bb534e856] | committer: Marvin Scholz

macosx: Fix timer interval value in ScrollingClipView

1/6 will evaluate to 0, making the timer choose a very low interval
instead of 0.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=201542ff729d489bdd6b0337e29d6a7bb534e856
---

 modules/gui/macosx/VLCScrollingClipView.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCScrollingClipView.m b/modules/gui/macosx/VLCScrollingClipView.m
index e058809f1d..c55141aa6f 100644
--- a/modules/gui/macosx/VLCScrollingClipView.m
+++ b/modules/gui/macosx/VLCScrollingClipView.m
@@ -31,7 +31,7 @@
 - (void)startScrolling {
     // Start our timer unless running
     if (!scrollTimer) {
-        scrollTimer = [NSTimer scheduledTimerWithTimeInterval: 1/6
+        scrollTimer = [NSTimer scheduledTimerWithTimeInterval:0.025
                                                        target:self
                                                      selector:@selector(scrollTick:)
                                                      userInfo:nil



More information about the vlc-commits mailing list