Browse Source

video VC: don't stop playback on close and make sure to always be the VPC's delegate if displayed

Felix Paul Kühne 10 years ago
parent
commit
03283d8622
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Sources/VLCMovieViewController.m

+ 3 - 3
Sources/VLCMovieViewController.m

@@ -433,7 +433,9 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
             [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
     }
 
-    [VLCPlaybackController sharedInstance].videoOutputView = self.movieView;
+    VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
+    vpc.videoOutputView = self.movieView;
+    vpc.delegate = self;
 
     [self setControlsHidden:NO animated:YES];
 }
@@ -660,8 +662,6 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
     LOCKCHECK;
 
     [self presentingViewControllerShouldBeClosed:nil];
-
-    [[VLCPlaybackController sharedInstance] stopPlayback];
 }
 
 - (IBAction)positionSliderAction:(UISlider *)sender