summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-10-01 02:58:17 +0100
committerComment <tim@gray.(none)>2013-10-01 02:58:17 +0100
commit89077608d6421f2aa57a9e04253c7032ccab6955 (patch)
tree94d22ab3c3a55221901e440bf5c99162cc29de6d
parent40d9f87901f28dd6d3520b83c8d07b8825ce6f9f (diff)
catch 0 length filenames
-rw-r--r--rotord/src/graph.cpp3
1 files changed, 2 insertions, 1 deletions
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<Audio_processor*> processors){
+ if (filename.size()==0) return false;
Logger& logger = Logger::get("Rotor");
logger.information("Analysing "+filename);