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

playback: safe a few cycles by not updating invisible UI

parent a9a7343b
......@@ -668,10 +668,12 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
// FIXME: hard coded state since the state in mediaPlayer is incorrectly still buffering
[self updateActivityIndicatorForState:VLCMediaPlayerStatePlaying];
VLCTransportBar *transportBar = self.transportBar;
transportBar.remainingTimeLabel.text = [[mediaPlayer remainingTime] stringValue];
transportBar.markerTimeLabel.text = [[mediaPlayer time] stringValue];
transportBar.playbackFraction = mediaPlayer.position;
if (self.bottomOverlayView.alpha != 0.0) {
VLCTransportBar *transportBar = self.transportBar;
transportBar.remainingTimeLabel.text = [[mediaPlayer remainingTime] stringValue];
transportBar.markerTimeLabel.text = [[mediaPlayer time] stringValue];
transportBar.playbackFraction = mediaPlayer.position;
}
}
#pragma mark - gesture recognizer delegate
......
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