summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-04 00:24:21 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-04 00:24:21 +0100
commit78c78cdb5c4c6c62ba98fa54c9ba54812149ef7b (patch)
treee18154b9952844b7ebcd1ec1cd9a812aa1ac7db9 /src/lib
parentc16a753940f1b03a0c5c268e4132d3f860910dae (diff)
Try to wrap ffprobe paths in quotes (may fix #168).
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cross.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc
index 86b657432..124697fb4 100644
--- a/src/lib/cross.cc
+++ b/src/lib/cross.cc
@@ -117,12 +117,14 @@ run_ffprobe (boost::filesystem::path content, boost::filesystem::path out, share
startup_info.dwFlags |= STARTF_USESTDHANDLES;
wchar_t command[512];
- wcscpy (command, L"ffprobe.exe ");
+ wcscpy (command, L"ffprobe.exe \"");
wchar_t file[512];
MultiByteToWideChar (CP_UTF8, 0, content.string().c_str(), -1, file, sizeof(file));
wcscat (command, file);
+ wcscat (command, L"\"");
+
PROCESS_INFORMATION process_info;
ZeroMemory (&process_info, sizeof (process_info));
if (!CreateProcess (0, command, 0, 0, TRUE, CREATE_NO_WINDOW, 0, 0, &startup_info, &process_info)) {