Commit 9501fbbf authored by Felix Paul Kühne's avatar Felix Paul Kühne

correctly close playback view prior to re-starting it

parent 1b467954
......@@ -502,6 +502,8 @@
{
if (!_movieViewController)
_movieViewController = [[VLCMovieViewController alloc] initWithNibName:nil bundle:nil];
else
[_movieViewController unanimatedPlaybackStop];
if ([mediaObject isKindOfClass:[MLFile class]])
_movieViewController.fileFromMediaLibrary = (MLFile *)mediaObject;
......
......@@ -93,6 +93,7 @@
@property (nonatomic, readwrite) int itemInMediaListToBePlayedFirst;
- (IBAction)closePlayback:(id)sender;
- (void)unanimatedPlaybackStop;
- (IBAction)positionSliderAction:(id)sender;
- (IBAction)positionSliderTouchDown:(id)sender;
......
......@@ -1270,6 +1270,12 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
}];
}
- (void)unanimatedPlaybackStop
{
[self _stopPlayback];
[self.navigationController dismissViewControllerAnimated:NO completion:nil];
}
- (IBAction)positionSliderAction:(UISlider *)sender
{
LOCKCHECK;
......
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