Commit e3c343e7 authored by Tobias's avatar Tobias

fix crash when user repeatedly and quickly pressed arrow button to present info VC

parent 0b2ecb37
...@@ -268,6 +268,11 @@ typedef NS_ENUM(NSInteger, VLCPlayerScanState) ...@@ -268,6 +268,11 @@ typedef NS_ENUM(NSInteger, VLCPlayerScanState)
} }
// TODO: configure with player info // TODO: configure with player info
VLCPlaybackInfoTVViewController *infoViewController = self.infoViewController; VLCPlaybackInfoTVViewController *infoViewController = self.infoViewController;
// prevent repeated presentation when users repeatedly and quickly press the arrow button
if (infoViewController.isBeingPresented) {
infoViewController.transitioningDelegate = self; infoViewController.transitioningDelegate = self;
[self presentViewController:infoViewController animated:YES completion:nil]; [self presentViewController:infoViewController animated:YES completion:nil];
[self animatePlaybackControlsToVisibility:NO]; [self animatePlaybackControlsToVisibility:NO];
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