From 9fc8a2e7b770339b72c080cfa510c461706fe43c Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 24 Oct 2013 15:24:55 +0100 Subject: catch non existent file in patchbay json video loader --- rotord/src/libavwrapper.cpp | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp index 26523fc..2ee9985 100644 --- a/rotord/src/libavwrapper.cpp +++ b/rotord/src/libavwrapper.cpp @@ -33,15 +33,25 @@ bool libav::video_decoder::open(const std::string& filename){ Mutex::ScopedLock lock(mutex); loaded=false; + Poco::File f=Poco::File(filename); + if (!f.exists()) { + cerr<<"ERROR: "<1){ + for (int i=0;i