Commit dafdd505 authored by Tobias's avatar Tobias
Browse files

fix scrubbing: playback has to be started again before the playback position...

fix scrubbing: playback has to be started again before the playback position is set, otherwise the player buffers infinitely
parent 6164586d
......@@ -241,8 +241,8 @@ typedef NS_ENUM(NSInteger, VLCPlayerScanState)
VLCTransportBar *bar = self.transportBar;
if (bar.scrubbing) {
bar.playbackFraction = bar.scrubbingFraction;
[vpc.mediaPlayer setPosition:bar.scrubbingFraction];
[self stopScrubbing];
[vpc.mediaPlayer setPosition:bar.scrubbingFraction];
} else if(vpc.mediaPlayer.playing) {
[vpc.mediaPlayer pause];
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment