File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ # Crash when opening stack
Original file line number Diff line number Diff line change @@ -190,11 +190,16 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
190190 MCPlatformBreakWait ();
191191 else if ([keyPath isEqualToString: @" currentItem.loadedTimeRanges" ])
192192 {
193- NSArray *t_time_ranges = ( NSArray *)[change objectForKey: NSKeyValueChangeNewKey ];
194- if (t_time_ranges && [t_time_ranges count ])
193+ // PM-2014-10-14: [[ Bug 13650 ]] Do this check to prevent a crash
194+ if ([change objectForKey: NSKeyValueChangeNewKey ] != [ NSNull null ])
195195 {
196- CMTimeRange timerange = [[t_time_ranges objectAtIndex: 0 ] CMTimeRangeValue ];
197- m_av_player -> MovieIsLoading (timerange);
196+ NSArray *t_time_ranges = (NSArray *)[change objectForKey: NSKeyValueChangeNewKey ];
197+
198+ if (t_time_ranges && [t_time_ranges count ])
199+ {
200+ CMTimeRange timerange = [[t_time_ranges objectAtIndex: 0 ] CMTimeRangeValue ];
201+ m_av_player -> MovieIsLoading (timerange);
202+ }
198203 }
199204 }
200205}
You can’t perform that action at this time.
0 commit comments