added removePlayerLayer to fix iOS crash (#650)

This commit is contained in:
Zach Nolan 2017-06-09 14:31:46 -07:00 committed by Matt Apperson
parent 72a46bc308
commit ef2120b418

View File

@ -141,6 +141,7 @@ static NSString *const timedMetadata = @"timedMetadata";
{ {
[[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] removeObserver:self];
[self removePlayerItemObservers]; [self removePlayerItemObservers];
[self removePlayerLayer];
[_player removeObserver:self forKeyPath:playbackRate context:nil]; [_player removeObserver:self forKeyPath:playbackRate context:nil];
} }