From 89077608d6421f2aa57a9e04253c7032ccab6955 Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 1 Oct 2013 02:58:17 +0100 Subject: catch 0 length filenames --- rotord/src/graph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rotord/src') diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index 77912e6..771a807 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -80,7 +80,7 @@ bool Graph::preview(xmlIO &XML,string &node,string &_format,int frame,int w,int } bool Graph::video_render(const string &output_filename,const float framerate,int start, int stop) { - + if (output_filename.size()==0) return false; //https://www.adobe.com/devnet/video/articles/mp4_movie_atom.html //https://www.google.ie/search?q=ffmbc&aq=f&oq=ffmbc&aqs=chrome.0.57j0l2j60j0j60.4360j0&sourceid=chrome&ie=UTF-8#q=ffmbc+git @@ -539,6 +539,7 @@ bool Graph::parseXml(string media_path){ return true; } bool Graph::load_audio(const string &filename,vector processors){ + if (filename.size()==0) return false; Logger& logger = Logger::get("Rotor"); logger.information("Analysing "+filename); -- cgit v1.2.3