Commit dfc5643c authored by Felix Paul Kühne's avatar Felix Paul Kühne

fullscreen view: fix playback state restoration issue (closes #15002)

(cherry picked from commit 7901743b)
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 8c3e9d3e
......@@ -829,7 +829,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
self.brightnessSlider.value = [UIScreen mainScreen].brightness * 2.;
[_equalizerView reloadData];
float playbackRate = controller.playbackRate;
double playbackRate = controller.playbackRate;
self.playbackSpeedSlider.value = log2(playbackRate);
self.playbackSpeedIndicator.text = [NSString stringWithFormat:@"%.2fx", playbackRate];
......
......@@ -946,6 +946,8 @@ setstuff:
currentMediaHasTrackToChooseFrom:self.currentMediaHasTrackToChooseFrom
currentMediaHasChapters:self.currentMediaHasChapters
forPlaybackController:self];
if ([self.delegate respondsToSelector:@selector(prepareForMediaPlayback:)])
[self.delegate prepareForMediaPlayback:self];
}
- (void)scheduleSleepTimerWithInterval:(NSTimeInterval)timeInterval
......
Markdown is supported
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