AVFoundation: fix build with iOS 8.0 SDK.

Change-Id: I9d9b97ad88631ba12a289f7575ca53386e592bd1
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
This commit is contained in:
Yoann Lopes
2014-09-29 17:46:47 +02:00
parent e195b7fc05
commit b6e1c00414

View File

@@ -295,7 +295,7 @@ static void *AVFMediaPlayerSessionObserverCurrentItemObservationContext = &AVFMe
//AVPlayerItem "status" property value observer. //AVPlayerItem "status" property value observer.
if (context == AVFMediaPlayerSessionObserverStatusObservationContext) if (context == AVFMediaPlayerSessionObserverStatusObservationContext)
{ {
AVPlayerStatus status = [[change objectForKey:NSKeyValueChangeNewKey] integerValue]; AVPlayerStatus status = (AVPlayerStatus)[[change objectForKey:NSKeyValueChangeNewKey] integerValue];
switch (status) switch (status)
{ {
//Indicates that the status of the player is not yet known because //Indicates that the status of the player is not yet known because