From c5eb6b4fec7a382789fc074c23ef2f7f71d9b010 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Sat, 30 May 2015 12:47:14 -0700 Subject: [PATCH] Fix crash from trying to remove observer multiple times --- .../UserInterfaceState.xcuserstate | Bin 29558 -> 31267 bytes .../xcschemes/xcschememanagement.plist | 2 +- Examples/VideoPlayer/package.json | 4 +-- RCTVideo.m | 27 +++++++++++++++--- package.json | 2 +- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/Examples/VideoPlayer/VideoPlayer.xcodeproj/project.xcworkspace/xcuserdata/brentvatne.xcuserdatad/UserInterfaceState.xcuserstate b/Examples/VideoPlayer/VideoPlayer.xcodeproj/project.xcworkspace/xcuserdata/brentvatne.xcuserdatad/UserInterfaceState.xcuserstate index 8f2980c92f628015e13aaefe41574e97a2740031..01791feea31954459161f669bc917a5e721defa1 100644 GIT binary patch delta 16266 zcma)j1$44#4);3aqiImkmZ zXa&X43A#fM=m~vcAk+rIU>E~qVH}Ky$*=&Hz%r_X=|}o&$#61)OeNFEbTWg?B(uowWFDDM7L#RUC0RrEAbXL$ z$v)%|aws{B97Q5>3^|RQPJTnqC0oc=ayhwz+(GUncagivJ>-7!0C|u+N}eFkkQc~b z$?N0|@+SF^{F8h{J|>@$|Bx>!E6R?tr<^DWC8Jy^ttaJ0$tgc7hzh2{sR$~XilGvy zM5-H=LS;~yR1TF(l~WZ|C8egSsA{T)s-^0v{?q`fks3%fQG=+#)DUVcHI5ojeMwEA zCQ@Hflc;a0+0-1Wjao=8q83w2sHN00Y7@1Y+Cpumwo%)u9n? zbLj7A?L4}bUPv#eSI{fzpXq({e)<4?kUm5orjO7^>0|US^l|zGeUd&!|4RQxU!kwk zcj&+9C-hVL8U37oLI2GV3}7HbGA4{EW5$RW2gZ>RGg8Kl31z~Va3+FLFp*3wlfWc0 zNlY@6%9JoFrktr_su_)zX<+&=eVM_`5N0Sdj2X_1Va77!m?_LuW*YM?Gn<*iEMS_M z7G@cLD01sNsCRG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3-O=oeNzH-3#S~n!@>os|xoN?k_x4c(m|D;iw}tNt zKNNm0f<<%@TjW#}R+LawTvS!mzi3X;nxgGRM~aRYoh&+2biU|f(WhdQV)J6lVw+<7 zV#i{);=tn2;)vqt;@INE;^g9X#oF}Z%;J8kdY>5_9L7fY^` zTras>@}T5#$S-BZRyC; zF{P7B=an{=HkB?eU0=GXbW7>>(!-_aOD~mPExlfPxAc7(QD#@xwk)+QqfA+rQ&v;f zP&TNHFB@7mqHJ{8l(K1MGsRNRl zb$|5$^i89zg8K}`}kY<)< zuI6XW0?k6rD$N?rdd)^n#4gPP&7bY<+l$(#w9jb&L;IoaN41||IC&%>H2xJ-8UMEY IZa?Y&0RP$I*Z=?k diff --git a/Examples/VideoPlayer/node_modules/react-native-video/RCTVideo.xcodeproj/xcuserdata/brentvatne.xcuserdatad/xcschemes/xcschememanagement.plist b/Examples/VideoPlayer/node_modules/react-native-video/RCTVideo.xcodeproj/xcuserdata/brentvatne.xcuserdatad/xcschemes/xcschememanagement.plist index e922244c..8a89ed79 100644 --- a/Examples/VideoPlayer/node_modules/react-native-video/RCTVideo.xcodeproj/xcuserdata/brentvatne.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Examples/VideoPlayer/node_modules/react-native-video/RCTVideo.xcodeproj/xcuserdata/brentvatne.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ RCTVideo.xcscheme orderHint - 10 + 12 SuppressBuildableAutocreation diff --git a/Examples/VideoPlayer/package.json b/Examples/VideoPlayer/package.json index f76b7cea..1f661e22 100644 --- a/Examples/VideoPlayer/package.json +++ b/Examples/VideoPlayer/package.json @@ -6,7 +6,7 @@ "start": "node_modules/react-native/packager/packager.sh" }, "dependencies": { - "react-native": "^0.4.0", - "react-native-video": "^0.3.5" + "react-native": "^0.4.4", + "react-native-video": "^0.4.1" } } diff --git a/RCTVideo.m b/RCTVideo.m index be64ea4b..b1484d10 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -18,6 +18,7 @@ static NSString *const statusKeyPath = @"status"; { AVPlayer *_player; AVPlayerItem *_playerItem; + BOOL _playerItemObserverSet; AVPlayerLayer *_playerLayer; NSURL *_videoURL; @@ -87,18 +88,36 @@ static NSString *const statusKeyPath = @"status"; [_progressUpdateTimer addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; } -- (void)notifyEnd: (NSNotification *)notification { +- (void)notifyEnd:(NSNotification *)notification +{ [_eventDispatcher sendInputEventWithName:RNVideoEventEnd body:@{ @"target": self.reactTag }]; } +- (void)addPlayerItemObserver +{ + [_playerItem addObserver:self forKeyPath:statusKeyPath options:0 context:nil]; + _playerItemObserverSet = YES; +} + +/* Fixes https://github.com/brentvatne/react-native-video/issues/43 + * Crashes caused when trying to remove the observer when there is no + * observer set */ +- (void)removePlayerItemObserver +{ + if (_playerItemObserverSet) { + [_playerItem removeObserver:self forKeyPath:statusKeyPath]; + _playerItemObserverSet = NO; + } +} + #pragma mark - Player and source - (void)setSrc:(NSDictionary *)source { - [_playerItem removeObserver:self forKeyPath:statusKeyPath]; + [self removePlayerItemObserver]; _playerItem = [self playerItemForSource:source]; - [_playerItem addObserver:self forKeyPath:statusKeyPath options:0 context:nil]; + [self addPlayerItemObserver]; [_player pause]; [_playerLayer removeFromSuperlayer]; @@ -321,7 +340,7 @@ static NSString *const statusKeyPath = @"status"; [_playerLayer removeFromSuperlayer]; _playerLayer = nil; - [_playerItem removeObserver:self forKeyPath:statusKeyPath]; + [self removePlayerItemObserver]; _eventDispatcher = nil; [[NSNotificationCenter defaultCenter] removeObserver:self]; diff --git a/package.json b/package.json index b625d3fa..50f2bd3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-video", - "version": "0.4.0", + "version": "0.4.1", "description": "A