From ddd72139591616e6cc00290c07dfa01c110e723b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 13 May 2015 22:30:48 +0300 Subject: [PATCH] playback/player: ios: Cast the seek slider value from float to integer after scaling https://github.com/sdroege/gst-player/issues/33 --- playback/player/ios/GstPlay/VideoViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playback/player/ios/GstPlay/VideoViewController.m b/playback/player/ios/GstPlay/VideoViewController.m index 5c752f2063..dcf06b24b3 100644 --- a/playback/player/ios/GstPlay/VideoViewController.m +++ b/playback/player/ios/GstPlay/VideoViewController.m @@ -114,7 +114,7 @@ if (!dragging_slider) return; // If this is a local file, allow scrub seeking, this is, seek as soon as the slider is moved. if (is_local_media) - gst_player_seek (player, ((long)time_slider.value) * 1000000); + gst_player_seek (player, time_slider.value * 1000000); [self updateTimeWidget]; }