summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm')
-rw-r--r--src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm b/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
index 5727cb0f4..7fa41fdc2 100644
--- a/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
+++ b/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
@@ -60,8 +60,8 @@ AVFVideoWindowControl::AVFVideoWindowControl(QObject *parent)
, m_hue(0)
, m_saturation(0)
, m_aspectRatioMode(Qt::IgnoreAspectRatio)
- , m_playerLayer(0)
- , m_nativeView(0)
+ , m_playerLayer(nullptr)
+ , m_nativeView(nullptr)
{
}
@@ -188,7 +188,7 @@ void AVFVideoWindowControl::setSaturation(int saturation)
void AVFVideoWindowControl::setLayer(void *playerLayer)
{
- AVPlayerLayer *layer = (AVPlayerLayer*)playerLayer;
+ AVPlayerLayer *layer = static_cast<AVPlayerLayer*>(playerLayer);
if (m_playerLayer == layer)
return;