From 5859511d5638742de2b8b94be2c855477d982c88 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Thu, 19 Mar 2015 00:00:29 +0000 Subject: [PATCH] Fix debug code when using video lock --- app/VideoHandle.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/VideoHandle.cpp b/app/VideoHandle.cpp index ed2ce68..759dafb 100644 --- a/app/VideoHandle.cpp +++ b/app/VideoHandle.cpp @@ -401,12 +401,13 @@ Void VideoHandle::setTimerStatus() else { #if( _CONTROL_PLAYING_TIME_ == 1 ) - qDebug( ) << "Desired Fps: " - << 1000 / m_pcPlayingTimer->interval() - << "Real Fps: " - << 1000 / m_dAverageFps; if( m_pcPlayControlTimer ) { + qDebug( ) << "Desired Fps: " + << 1000 / m_pcPlayingTimer->interval() + << "Real Fps: " + << 1000 / m_dAverageFps; + delete m_pcPlayControlTimer; m_pcPlayControlTimer = NULL; }