using std::string;
using std::wstring;
using std::make_pair;
+using std::runtime_error;
using boost::shared_ptr;
/** @param s Number of seconds to sleep for */
uint32_t size = 1024;
char buffer[size];
if (_NSGetExecutablePath (buffer, &size)) {
- throw StringError ("_NSGetExecutablePath failed");
+ throw runtime_error ("_NSGetExecutablePath failed");
}
boost::filesystem::path path (buffer);
path /= "MacOS";
path /= "ffprobe";
- string ffprobe = path.string() + " \"" + content.string() + "\" 2> \"" + out.string() + "\"";
+ string ffprobe = "\"" + path.string() + "\" \"" + content.string() + "\" 2> \"" + out.string() + "\"";
LOG_GENERAL (N_("Probing with %1"), ffprobe);
system (ffprobe.c_str ());
#endif