Commit 9a5bae4e authored by Val Doroshchuk's avatar Val Doroshchuk Committed by VaL Doroshchuk
Browse files

AVFoundation: Fix typos


Change-Id: Iab522426786a0244bf23cf889e08b5c52550eb39
Reviewed-by: default avatarTimur Pocheptsov <timur.pocheptsov@qt.io>
parent f1c5e109
Branches
Tags v5.13.0-beta1
No related merge requests found
Showing with 4 additions and 5 deletions
...@@ -191,10 +191,9 @@ void AVFVideoRendererControl::setLayer(void *playerLayer) ...@@ -191,10 +191,9 @@ void AVFVideoRendererControl::setLayer(void *playerLayer)
if (m_playerLayer == playerLayer) if (m_playerLayer == playerLayer)
return; return;
[static_cast<AVPlayerLayer*>(playerLayer) retain]; [static_cast<AVPlayerLayer*>(m_playerLayer) release];
[static_cast<AVPlayerLayer*>(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 //If there is an active surface, make sure it has been stopped so that
//we can update it's state with the new content. //we can update it's state with the new content.
...@@ -225,7 +224,7 @@ void AVFVideoRendererControl::updateVideoFrame(const CVTimeStamp &ts) ...@@ -225,7 +224,7 @@ void AVFVideoRendererControl::updateVideoFrame(const CVTimeStamp &ts)
{ {
Q_UNUSED(ts) Q_UNUSED(ts)
AVPlayerLayer *playerLayer = static_cast<AVPlayerLayer*>(playerLayer); AVPlayerLayer *playerLayer = static_cast<AVPlayerLayer*>(m_playerLayer);
if (!playerLayer) { if (!playerLayer) {
qWarning("updateVideoFrame called without AVPlayerLayer (which shouldn't happen"); qWarning("updateVideoFrame called without AVPlayerLayer (which shouldn't happen");
...@@ -305,7 +304,7 @@ void AVFVideoRendererControl::updateVideoFrame(const CVTimeStamp &ts) ...@@ -305,7 +304,7 @@ void AVFVideoRendererControl::updateVideoFrame(const CVTimeStamp &ts)
void AVFVideoRendererControl::setupVideoOutput() void AVFVideoRendererControl::setupVideoOutput()
{ {
AVPlayerLayer *playerLayer = static_cast<AVPlayerLayer*>(playerLayer); AVPlayerLayer *playerLayer = static_cast<AVPlayerLayer*>(m_playerLayer);
if (playerLayer) if (playerLayer)
m_nativeSize = QSize(playerLayer.bounds.size.width, playerLayer.bounds.size.height); m_nativeSize = QSize(playerLayer.bounds.size.width, playerLayer.bounds.size.height);
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment