Commit c3a86592 authored by Marvin Scholz's avatar Marvin Scholz

VLCMovieViewController: Fix seeking in live streams

Live streams have sometimes no valid duration, so setting the
`_positionSet` state only in case of `_mediaDuration > 0` leads to
an issue that seeking in such streams only works for the first time,
as `_positionSet` is initialized as NO, then it is set to YES in
`_setPositionForReal` and would be never set back to NO, causing all
future seeks to be ignored.

Fix videolan/VLCKit#157
parent 69ef02d9
......@@ -1066,8 +1066,8 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
[self.timeNavigationTitleView.timeDisplayButton setTitle:newPosition.stringValue forState:UIControlStateNormal];
[self.timeNavigationTitleView setNeedsLayout];
self.timeNavigationTitleView.timeDisplayButton.accessibilityLabel = [NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"PLAYBACK_POSITION", nil), newPosition.stringValue];
_positionSet = NO;
_positionSet = NO;
[self _resetIdleTimer];
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