Change exceptions handle to the PlaYUVerExcpetions

This commit is contained in:
jfmcarreira committed 2016-05-09 01:20:33 +01:00
1 parent 617c42563d
commit d7d3e9f4ea
4 files changed
+11 -8

No files matched your search

+2 -1
View File
@@ -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 )
{
+2
View File
@@ -57,6 +57,8 @@ class PlaYUVerStreamHandlerIf
{
}
virtual void Delete() = 0;
virtual Bool openHandler( String strFilename, Bool bInput ) = 0;
virtual Void closeHandler() = 0;
virtual Bool configureBuffer( PlaYUVerFrame* pcFrame ) = 0;