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

Marvin Scholz git at videolan.org
Fri Feb 9 01:02:31 CET 2018


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Feb  9 00:33:49 2018 +0100| [407d4ba761a4fc1fbcf4188966b498719330d5c0] | 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.

(cherry picked from commit 201542ff729d489bdd6b0337e29d6a7bb534e856)
Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=407d4ba761a4fc1fbcf4188966b498719330d5c0
---

 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