From b6dc7c469b46f805d03f561d1f430ea713a9b36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Chmiela?= Date: Thu, 19 May 2016 20:27:23 +0200 Subject: [PATCH] Remove observer providing context --- RCTVideo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RCTVideo.m b/RCTVideo.m index 364560ed..7e48fb4d 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -227,7 +227,7 @@ static NSString *const playbackRate = @"rate"; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; if (_playbackRateObserverRegistered) { - [_player removeObserver:self forKeyPath:playbackRate]; + [_player removeObserver:self forKeyPath:playbackRate context:nil]; _playbackRateObserverRegistered = NO; } [_player addObserver:self forKeyPath:playbackRate options:0 context:nil]; @@ -676,7 +676,7 @@ static NSString *const playbackRate = @"rate"; { [_player pause]; if (_playbackRateObserverRegistered) { - [_player removeObserver:self forKeyPath:playbackRate]; + [_player removeObserver:self forKeyPath:playbackRate context:nil]; _playbackRateObserverRegistered = NO; } _player = nil;