From b671596a24f99d9b8df77f5138808618a079ca8a Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Thu, 28 Feb 2019 18:05:15 +0000 Subject: [PATCH] Show configuration windows when it fails to open using a guess --- app/VideoSubWindow.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/VideoSubWindow.cpp b/app/VideoSubWindow.cpp index c9c05c2..26055c6 100644 --- a/app/VideoSubWindow.cpp +++ b/app/VideoSubWindow.cpp @@ -334,8 +334,15 @@ bool VideoSubWindow::loadFile( QString cFilename, bool bForceDialog ) return false; } } - bRet = m_pCurrStream->open( cFilename.toStdString(), Width, Height, InputFormat, BitsPel, Endianness, FrameRate, - true ); + try + { + bRet = m_pCurrStream->open( cFilename.toStdString(), Width, Height, InputFormat, BitsPel, Endianness, FrameRate, true ); + } + catch( CalypFailure& e ) + { + if( iPass == 1 ) + throw( e ); + } } m_sStreamInfo.m_cFilename = cFilename;