summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVal Doroshchuk <valentyn.doroshchuk@qt.io>2019-03-08 12:31:13 +0100
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-03-11 08:50:03 +0000
commit9a5bae4ed9ca10fedf842b5c293d1c0ef918c8af (patch)
tree1493887565b17793f62b6d8acb7ef8717e4672be
parentf1c5e109a48b6fdef641528985e249c10c1ae1a2 (diff)
AVFoundation: Fix typosv5.13.0-beta1
Change-Id: Iab522426786a0244bf23cf889e08b5c52550eb39 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r--src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.mm9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.mm b/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.mm
index 5f468e53..e06ddc4b 100644
--- a/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.mm
+++ b/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.mm
@@ -191,10 +191,9 @@ void AVFVideoRendererControl::setLayer(void *playerLayer)
if (m_playerLayer == playerLayer)
return;
- [static_cast<AVPlayerLayer*>(playerLayer) retain];
- [static_cast<AVPlayerLayer*>(playerLayer) release];
+ [static_cast<AVPlayerLayer*>(m_playerLayer) release];
- m_playerLayer = playerLayer;
+ m_playerLayer = [static_cast<AVPlayerLayer*>(playerLayer) retain];
//If there is an active surface, make sure it has been stopped so that
//we can update it's state with the new content.
@@ -225,7 +224,7 @@ void AVFVideoRendererControl::updateVideoFrame(const CVTimeStamp &ts)
{
Q_UNUSED(ts)
- AVPlayerLayer *playerLayer = static_cast<AVPlayerLayer*>(playerLayer);
+ AVPlayerLayer *playerLayer = static_cast<AVPlayerLayer*>(m_playerLayer);
if (!playerLayer) {
qWarning("updateVideoFrame called without AVPlayerLayer (which shouldn't happen");
@@ -305,7 +304,7 @@ void AVFVideoRendererControl::updateVideoFrame(const CVTimeStamp &ts)
void AVFVideoRendererControl::setupVideoOutput()
{
- AVPlayerLayer *playerLayer = static_cast<AVPlayerLayer*>(playerLayer);
+ AVPlayerLayer *playerLayer = static_cast<AVPlayerLayer*>(m_playerLayer);
if (playerLayer)
m_nativeSize = QSize(playerLayer.bounds.size.width, playerLayer.bounds.size.height);
}