From 43e8a34894b9464971ad2e8b32e7b776a812abdf Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sun, 18 May 2014 19:39:30 +0100 Subject: [PATCH] Fix bug when parsing the filename and when refreshing module after window swap --- source/app/InputStream.cpp | 2 +- source/app/SubWindowHandle.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/app/InputStream.cpp b/source/app/InputStream.cpp index b502506..546a921 100755 --- a/source/app/InputStream.cpp +++ b/source/app/InputStream.cpp @@ -284,7 +284,7 @@ Bool InputStream::guessFormat( QString filename, UInt& rWidth, UInt& rHeight, In break; } } - if( rWidth >= 0 && rHeight >= 0 && rInputFormat >= 0 ) + if( rWidth > 0 && rHeight > 0 && rInputFormat >= 0 ) bRet = false; } return bRet; diff --git a/source/app/SubWindowHandle.cpp b/source/app/SubWindowHandle.cpp index b246623..021d303 100644 --- a/source/app/SubWindowHandle.cpp +++ b/source/app/SubWindowHandle.cpp @@ -144,7 +144,6 @@ Void SubWindowHandle::swapModuleFrames() } } - Void SubWindowHandle::setCurrFrame( PlaYUVerFrame* pcCurrFrame ) { m_pcCurrFrame = pcCurrFrame; @@ -166,9 +165,9 @@ Void SubWindowHandle::refreshFrame() else { if( m_pcCurrentModule ) - { - bSetFrame = ModulesHandle::applyModuleIf( m_pcCurrentModule, m_bIsPlaying ); - } + { + bSetFrame = ModulesHandle::applyModuleIf( m_pcCurrentModule, m_bIsPlaying ); + } } if( bSetFrame ) {