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
Attachments
For Gerrit Dashboard: QTBUG-41136 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
94094,3 | Fixed avfmediaplayersession.mm for OSX 10.10 Yosemite. | dev | qt/qtmultimedia | Status: ABANDONED | +1 | 0 |
94657,2 | Fixed avfmediaplayersession.mm for OSX 10.10 Yosemite. | 5.4 | qt/qtmultimedia | Status: MERGED | +2 | 0 |