Fix linux build.
authorCarl Hetherington <cth@carlh.net>
Mon, 24 Jun 2013 14:09:05 +0000 (15:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 24 Jun 2013 14:09:05 +0000 (15:09 +0100)
src/lib/cross.cc

index cdb7f281955f2e021d6872cb9e14d5461604295e..a642915f4f6021289f9dbaa3c4361c161c99954f 100644 (file)
@@ -20,6 +20,7 @@
 #include <fstream>
 #include <boost/algorithm/string.hpp>
 #include "cross.h"
+#include "compose.hpp"
 #include "log.h"
 #ifdef DVDOMATIC_POSIX
 #include <unistd.h>
@@ -150,7 +151,7 @@ run_ffprobe (boost::filesystem::path content, boost::filesystem::path out, share
        CloseHandle (process_info.hThread);
        CloseHandle (child_stderr_read);
 #else
-       string ffprobe = "ffprobe 2> \"" + c + "\" 2> \"" + file ("ffprobe.log");
+       string ffprobe = "ffprobe 2> \"" + content.string() + "\" 2> \"" + out.string();
        log->log (String::compose ("Probing with %1", ffprobe));
        system (ffprobe.c_str ());
 #endif