diff --git a/app/VideoHandle.cpp b/app/VideoHandle.cpp index a36636c..4e39229 100644 --- a/app/VideoHandle.cpp +++ b/app/VideoHandle.cpp @@ -327,16 +327,16 @@ Void VideoHandle::moveAllScrollBars( const QPoint offset ) scrollBar = m_pcCurrentVideoSubWindow->horizontalScrollBar(); // Do not move other images, if current image reached maximum or minimum scroll position - if(scrollBar->value()==scrollBar->maximum() && offset.x()>0) - newOffset.setX(0); - if(scrollBar->value()==scrollBar->minimum() && offset.x()<0) - newOffset.setX(0); + if( scrollBar->value() == scrollBar->maximum() && offset.x() > 0 ) + newOffset.setX( 0 ); + if( scrollBar->value() == scrollBar->minimum() && offset.x() < 0 ) + newOffset.setX( 0 ); scrollBar = m_pcCurrentVideoSubWindow->verticalScrollBar(); - if(scrollBar->value()==scrollBar->maximum() && offset.y()>0) - newOffset.setY(0); - if(scrollBar->value()==scrollBar->minimum() && offset.y()<0) - newOffset.setY(0); + if( scrollBar->value() == scrollBar->maximum() && offset.y() > 0 ) + newOffset.setY( 0 ); + if( scrollBar->value() == scrollBar->minimum() && offset.y() < 0 ) + newOffset.setY( 0 ); for( Int i = 0; i < subWindowList.size(); i++ ) { @@ -505,16 +505,14 @@ Void VideoHandle::playEvent() QString warningMsg = "Error while playing " + QFileInfo( m_pcCurrentVideoSubWindow->getCurrentFileName() ).fileName() + " with the following error: \n" + msg; QMessageBox::warning( this, QApplication::applicationName(), warningMsg ); - //statusBar()->showMessage( warningMsg, 2000 ); qDebug( ) << warningMsg; stop(); m_pcCurrentVideoSubWindow->close(); } #if( _CONTROL_PLAYING_TIME_ == 1 ) - m_dAverageFps = Double( m_dAverageFps * m_uiNumberPlayedFrames + m_pcPlayControlTimer->elapsed() ) - / Double( m_uiNumberPlayedFrames + 1 ); - m_uiNumberPlayedFrames++; - m_pcPlayControlTimer->restart(); + m_dAverageFps = Double( m_dAverageFps * m_uiNumberPlayedFrames + m_pcPlayControlTimer->elapsed() ) / Double( m_uiNumberPlayedFrames + 1 ); + m_uiNumberPlayedFrames++; + m_pcPlayControlTimer->restart(); #endif emit changed(); } diff --git a/lib/PlaYUVerFrame.cpp b/lib/PlaYUVerFrame.cpp index 15af2f8..4913562 100644 --- a/lib/PlaYUVerFrame.cpp +++ b/lib/PlaYUVerFrame.cpp @@ -249,14 +249,14 @@ PlaYUVerFrame::Pixel PlaYUVerFrame::ConvertPixel( PlaYUVerFrame::Pixel inputPixe if( eOutputSpace == COLOR_RGB ) { - yuvToRgb( inputPixel.Y(), inputPixel.Cb(), inputPixel.Cr(), outA, outB, outC ); + yuvToRgb( inputPixel.Y(), inputPixel.Cb(), inputPixel.Cr(), outA, outB, outC ); outPixel.R() = outA; outPixel.G() = outB; outPixel.B() = outC; } if( eOutputSpace == COLOR_YUV ) { - rgbToYuv( inputPixel.R(), inputPixel.G(), inputPixel.B(), outA, outB, outC ); + rgbToYuv( inputPixel.R(), inputPixel.G(), inputPixel.B(), outA, outB, outC ); outPixel.Y() = outA; outPixel.Cb() = outB; outPixel.Cr() = outC;