Commit 25a9979f authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

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

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