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 @@
- (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
......
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