Try to fix path for ffprobe.
authorCarl Hetherington <cth@carlh.net>
Mon, 24 Jun 2013 00:23:12 +0000 (01:23 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 24 Jun 2013 00:23:12 +0000 (01:23 +0100)
src/lib/film.cc

index a881e957acca19b83f7fb0ee2dd368e3b2e396ae..273ae09934432957506a72675bd44b01674e9b1f 100644 (file)
@@ -1000,7 +1000,12 @@ Film::set_content (string c)
        }
 
 #ifdef DVDOMATIC_WINDOWS
-       string ffprobe = "ffprobe.exe ";
+       char dir[512];
+       GetModuleFileName (GetModuleHandle (0), dir, sizeof (dir));
+       boost::filesystem::path path_dir (dir);
+       path_dir = path_dir.parent_path ();
+       path_dir /= "ffprobe.exe";
+       ffprobe = path_dir.string ();
 #else
        string ffprobe = "ffprobe ";
 #endif