From bd2600ad8c8c77199df4ad908ee4680c5071762c Mon Sep 17 00:00:00 2001
From: Tristan Walter <twalter@orn.mpg.de>
Date: Mon, 9 Nov 2020 15:26:53 +0100
Subject: [PATCH] fixing VideoOpener parameters to be enclosed in double-quotes
 instead of single-quotes

---
 Application/src/tracker/VideoOpener.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Application/src/tracker/VideoOpener.cpp b/Application/src/tracker/VideoOpener.cpp
index 86d4b52..251ace9 100644
--- a/Application/src/tracker/VideoOpener.cpp
+++ b/Application/src/tracker/VideoOpener.cpp
@@ -283,7 +283,7 @@ VideoOpener::VideoOpener() {
                 // PV file, no need to add cmd
             } else if(!_result.selected_file.empty()) {
                 auto add = TEMP_SETTING(cmd_parameters).value<std::string>();
-                _result.cmd = "-i '" + path.str() + "' " + "-o '"+TEMP_SETTING(output_name).value<file::Path>().str()+"' -threshold "+TEMP_SETTING(threshold).get().valueString()+" -average_samples "+TEMP_SETTING(average_samples).get().valueString()
+                _result.cmd = "-i \"" + path.str() + "\" " + "-o \""+TEMP_SETTING(output_name).value<file::Path>().str()+"\" -threshold "+TEMP_SETTING(threshold).get().valueString()+" -average_samples "+TEMP_SETTING(average_samples).get().valueString()
                     +" -averaging_method "+TEMP_SETTING(averaging_method).get().valueString()
                     +(add.empty() ? "" : " ")+add;
             }
-- 
GitLab