Fix when an stream handler cannot be created

This commit is contained in:
jfmcarreira committed 2016-04-11 01:19:23 +01:00
1 parent faa4c30c98
commit ac999efa00
1 file changed
+1 -3
+1 -3
View File
@@ -195,7 +195,6 @@ Bool PlaYUVerStream::open( std::string filename, UInt width, UInt height, Int in
m_pfctCreateHandler = PlaYUVerStream::findStreamHandler( filename, m_bIsInput );
if( !m_pfctCreateHandler )
{
close();
throw "[PlaYUVerStream] Invalid handler";
}
@@ -203,8 +202,7 @@ Bool PlaYUVerStream::open( std::string filename, UInt width, UInt height, Int in
if( !m_pcHandler )
{
close();
throw "[PlaYUVerStream] Invalid handler";
throw "[PlaYUVerStream] Cannot create handler";
}
m_cFilename = filename;