From ac999efa00ae53b0bafad887ac0dc2ed1d04da11 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 11 Apr 2016 01:19:23 +0100 Subject: [PATCH] Fix when an stream handler cannot be created --- lib/PlaYUVerStream.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/PlaYUVerStream.cpp b/lib/PlaYUVerStream.cpp index ce7a3f7..e3ffb8b 100644 --- a/lib/PlaYUVerStream.cpp +++ b/lib/PlaYUVerStream.cpp @@ -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;