From: Andy Nichols Date: Mon, 3 Mar 2014 14:15:00 +0000 (+0100) Subject: AVFoundation: Remove debug code X-Git-Tag: upstream/5.2.90+alpha~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16430262d9068f5f2ce5c2b4a16e8f71c4442254;p=platform%2Fupstream%2Fqtmultimedia.git AVFoundation: Remove debug code Some debug code made it into the released code, so each time you used the QWidget based video player the terminal would print data about the window frame size. Change-Id: I86eb00ce5edb23b7a2abf6a63893cd17aaeb0ee3 Reviewed-by: Yoann Lopes --- diff --git a/src/plugins/avfoundation/mediaplayer/avfvideowidget.mm b/src/plugins/avfoundation/mediaplayer/avfvideowidget.mm index 2e4de37..d4fa7c4 100644 --- a/src/plugins/avfoundation/mediaplayer/avfvideowidget.mm +++ b/src/plugins/avfoundation/mediaplayer/avfvideowidget.mm @@ -121,7 +121,7 @@ void AVFVideoWidget::setPlayerLayer(AVPlayerLayer *layer) [nativeLayer addSublayer:m_playerLayer]; updatePlayerLayerBounds(this->size()); } - +#ifdef QT_DEBUG_AVF NSArray *sublayers = [nativeLayer sublayers]; qDebug() << "playerlayer: " << "at z:" << [m_playerLayer zPosition] << " frame: " << m_playerLayer.frame.size.width << "x" << m_playerLayer.frame.size.height; @@ -133,7 +133,7 @@ void AVFVideoWidget::setPlayerLayer(AVPlayerLayer *layer) << " frame: " << layer.frame.size.width << "x" << layer.frame.size.height; i++; } - +#endif }