summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-24 01:23:12 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-24 01:23:12 +0100
commit23945ac9d84e2f77a08591604ec1244535548147 (patch)
tree784741710dac9b8a5d3e2d3527c2a4f25dccffb3 /src/lib
parent154d5fc4b28394ffcc0e12a680b0a24107d11b84 (diff)
Try to fix path for ffprobe.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/film.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index a881e957a..273ae0993 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -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