summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-28 16:25:20 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-09-01 12:52:51 +0200
commit659f238bbbe040cce1bdf900f8f5500845ca8727 (patch)
tree7990072bf39b2c19df68bcd7615242d08eb8dd2f /src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
parent80ba1d635dc37963b4c90d776c46774b0349c4f8 (diff)
parent1dba07b602ef8b3fd9333a8afb1db4cbaf9d824e (diff)
Merge remote-tracking branch 'origin/5.3' into 5.4
Conflicts: src/gsttools/qgstreamervideoinputdevicecontrol.cpp src/plugins/gstreamer/camerabin/camerabinserviceplugin.cpp src/plugins/gstreamer/mediacapture/qgstreamercaptureserviceplugin.cpp Change-Id: Ic854589562d2deeaa0ebf75840cb8a2ee32e99de
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm')
-rw-r--r--src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm b/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
index 17fc94de7..8e96d732f 100644
--- a/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
+++ b/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
@@ -61,8 +61,10 @@ AVFVideoWindowControl::AVFVideoWindowControl(QObject *parent)
AVFVideoWindowControl::~AVFVideoWindowControl()
{
- if (m_playerLayer)
+ if (m_playerLayer) {
+ [m_playerLayer removeFromSuperlayer];
[m_playerLayer release];
+ }
}
WId AVFVideoWindowControl::winId() const