#include "i18n.h"
-#define LOG_GENERAL(...) log->log (String::compose (__VA_ARGS__), Log::TYPE_GENERAL);
-#define LOG_ERROR(...) log->log (String::compose (__VA_ARGS__), Log::TYPE_ERROR);
-#define LOG_ERROR_NC(...) log->log (__VA_ARGS__, Log::TYPE_ERROR);
+#define LOG_GENERAL(...) log->log (String::compose (__VA_ARGS__), LogEntry::TYPE_GENERAL);
+#define LOG_ERROR(...) log->log (String::compose (__VA_ARGS__), LogEntry::TYPE_ERROR);
+#define LOG_ERROR_NC(...) log->log (__VA_ARGS__, LogEntry::TYPE_ERROR);
using std::pair;
using std::list;
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