AVFoundation: fix retrieving tracks information from live sources.
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 8 May 2014 13:22:11 +0000 (15:22 +0200)
committerYoann Lopes <yoann.lopes@digia.com>
Mon, 25 Aug 2014 15:30:23 +0000 (17:30 +0200)
commitbee6244e2428c4a2f4b62dd1e8896f310b2208c8
tree9dd9d424eac71b22fcd8af35680eb7696703ed45
parent341b86c63fbe9e9f284e2d6547cb639f487a2ec4
AVFoundation: fix retrieving tracks information from live sources.

For live sources, tracks information is available only after the
AVPlayer changed its status to AVPlayerStatusReadyToPlay. It also
seems to be available only from AVPlayerItem.tracks rather than
AVAsset.tracks.
The audioAvailableChanged() and videoAvailableChanged()
signals are now correclty emitted and the video layer is
correctly positioned for live sources.

Task-number: QTBUG-38666
Change-Id: I8ee015a6ce81694c1fc1e44c679887cf7ccb0fd6
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
src/plugins/avfoundation/mediaplayer/avfmediaplayersession.h
src/plugins/avfoundation/mediaplayer/avfmediaplayersession.mm