projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
154d5fc
)
Try to fix path for ffprobe.
author
Carl Hetherington
<cth@carlh.net>
Mon, 24 Jun 2013 00:23:12 +0000
(
01:23
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 24 Jun 2013 00:23:12 +0000
(
01:23
+0100)
src/lib/film.cc
patch
|
blob
|
history
diff --git
a/src/lib/film.cc
b/src/lib/film.cc
index a881e957acca19b83f7fb0ee2dd368e3b2e396ae..273ae09934432957506a72675bd44b01674e9b1f 100644
(file)
--- 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