Browse Source

actually stop media player instance when movie view disappears (close #8574)

Felix Paul Kühne 12 years ago
parent
commit
25a9979f52
1 changed files with 1 additions and 7 deletions
  1. 1 7
      AspenProject/VLCMovieViewController.m

+ 1 - 7
AspenProject/VLCMovieViewController.m

@@ -18,7 +18,6 @@
 
 - (void)dealloc
 {
-    [_mediaPlayer stop];
     [[NSNotificationCenter defaultCenter] removeObserver:self];
 }
 
@@ -89,12 +88,7 @@
     [_mediaPlayer pause];
     [super viewWillDisappear:animated];
     self.mediaItem.lastPosition = @([_mediaPlayer position]);
-}
-
-- (void)didReceiveMemoryWarning
-{
-    [super didReceiveMemoryWarning];
-    // Dispose of any resources that can be recreated.
+    [_mediaPlayer stop];
 }
 
 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil