set_use_content_audio (false);
}
-#ifdef DVDOMATIC_WINDOWS
- wchar_t dir[512];
- GetModuleFileName (GetModuleHandle (0), dir, sizeof (dir));
- boost::filesystem::path path_dir (dir);
- path_dir = path_dir.parent_path ();
- path_dir /= "ffprobe.exe";
- string ffprobe = "\"" + path_dir.string () + "\" ";
-#else
- string ffprobe = "ffprobe ";
-#endif
- ffprobe += "\"" + c + "\"";
- ffprobe += " 2> \"" + file ("ffprobe.log") + "\"";
- log()->log (String::compose ("Probing with %1", ffprobe));
- system (ffprobe.c_str ());
+ run_ffprobe (c, file ("ffprobe.log"), _log);
}
void