playback/player: ios: Cast the seek slider value from float to integer after scaling
authorSebastian Dröge <sebastian@centricular.com>
Wed, 13 May 2015 19:30:48 +0000 (22:30 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 13 May 2015 19:30:48 +0000 (22:30 +0300)
https://github.com/sdroege/gst-player/issues/33

playback/player/ios/GstPlay/VideoViewController.m

index 5c752f2..dcf06b2 100644 (file)
     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];
 }