Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.1
-
None
-
-
8d5114a63051128992291356440ecff9ab2ef6b6
Description
Building QT 5.3.1 on OSX 10.10 Yosemite Beta 2 fails, since the enum AVPlayerStatus is not accepting rvalue NSInteger.
Explicitly casting the integer value to AVPlayerStatus fixes the problem.
--- a/qtmultimedia/src/plugins/avfoundation/mediaplayer/avfmediaplayersession.mm +++ b/qtmultimedia/src/plugins/avfoundation/mediaplayer/avfmediaplayersession.mm @@ -322,7 +322,7 @@ static void *AVFMediaPlayerSessionObserverCurrentItemObservationContext = &AVFMe //AVPlayerItem "status" property value observer. if (context == AVFMediaPlayerSessionObserverStatusObservationContext) { - AVPlayerStatus status = [[change objectForKey:NSKeyValueChangeNewKey] integerValue]; + AVPlayerStatus status = (AVPlayerStatus)[[change objectForKey:NSKeyValueChangeNewKey] integerValue]; switch (status) { //Indicates that the status of the player is not yet known because