AVFoundation: fix build with iOS 8.0 SDK.
Change-Id: I9d9b97ad88631ba12a289f7575ca53386e592bd1 Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user