Commit b087341e authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne

playback: fix not select row in the track Selector TableView

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent d225d1ce
......@@ -1455,10 +1455,16 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
if (!_controlsHidden) {
self.controllerPanel.hidden = _controlsHidden = YES;
self.controllerPanelLandscape.hidden = YES;
self.toolbar.hidden = YES;
}
}
self.videoFilterView.hidden = _videoFiltersHidden = YES;
for (UIGestureRecognizer *recognizer in self.view.gestureRecognizers)
[recognizer setEnabled:NO];
[_tapOnVideoRecognizer setEnabled:YES];
} else {
_trackSelectorContainer.hidden = YES;
_switchingTracksNotChapters = NO;
......@@ -1764,9 +1770,9 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
}
} else {
if ([_mediaPlayer countOfTitles] > 1 && indexPath.section == 0)
_mediaPlayer.currentTitleIndex = index;
_mediaPlayer.currentTitleIndex = (int)index;
else
_mediaPlayer.currentChapterIndex = index;
_mediaPlayer.currentChapterIndex = (int)index;
}
CGFloat alpha = 0.0f;
......@@ -1777,6 +1783,8 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
};
void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
for (UIGestureRecognizer *recognizer in self.view.gestureRecognizers)
[recognizer setEnabled:YES];
_trackSelectorContainer.hidden = YES;
};
......
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