Fix load file and reload button

This commit is contained in:
jfmcarreira committed 2015-04-27 17:15:25 +01:00
1 parent 0bc716c0a5
commit 47d0636624
3 files changed
+8 -6

No files matched your search

+5 -5
View File
@@ -157,11 +157,11 @@ Bool VideoSubWindow::loadFile( QString cFilename, Bool bForceDialog )
{
m_pCurrStream = new PlaYUVerStream;
}
else
{
delete m_pCurrStream;
m_pCurrStream = new PlaYUVerStream;
}
// else
// {
// delete m_pCurrStream;
// m_pCurrStream = new PlaYUVerStream;
// }
if( guessFormat( cFilename, Width, Height, InputFormat, FrameRate ) || bForceDialog )
{
+2
View File
@@ -138,9 +138,11 @@ PlaYUVerFrame::~PlaYUVerFrame()
{
if( m_pppcInputPel )
freeMem3ImageComponents<Pel>( m_pppcInputPel );
m_pppcInputPel = NULL;
if( m_pcARGB32 )
freeMem1D( m_pcARGB32 );
m_pcARGB32 = NULL;
closePixfc();
}
+1 -1
View File
@@ -45,7 +45,7 @@ PlaYUVerFrameStats::~PlaYUVerFrameStats()
{
if( m_puiHistogram )
freeMem1D( m_puiHistogram );
m_puiHistogram = NULL;
}
// statistics