Change exceptions handle to the PlaYUVerExcpetions
This commit is contained in:
1 parent
617c42563d
commit
d7d3e9f4ea
4 files changed
+11
-8
No files matched your search
@@ -237,7 +237,7 @@ Bool PlaYUVerStream::open( String filename, UInt width, UInt height, Int input_f
|
||||
m_ppcFrameBuffer[i] = new PlaYUVerFrame( m_pcHandler->m_uiWidth, m_pcHandler->m_uiHeight, m_pcHandler->m_iPixelFormat, m_pcHandler->m_uiBitsPerPixel,
|
||||
m_pcHandler->m_iEndianness );
|
||||
}
|
||||
catch( const char *msg )
|
||||
catch( PlaYUVerFailure& e )
|
||||
{
|
||||
close();
|
||||
throw PlaYUVerFailure( "PlaYUVerStream", "Cannot allocated frame buffer" );
|
||||
@@ -308,6 +308,7 @@ Void PlaYUVerStream::close()
|
||||
return;
|
||||
|
||||
m_pcHandler->closeHandler();
|
||||
m_pcHandler->Delete();
|
||||
|
||||
if( m_ppcFrameBuffer )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user