Commit 7a08d7e8 authored by Xavier de Blas's avatar Xavier de Blas

playpreview and play with RunAtBackground (again)

parent 12e56f6c
......@@ -2608,7 +2608,7 @@ public partial class ChronoJumpWindow
new DialogMessage(Constants.MessageTypes.WARNING,
string.Format(
Catalog.GetString("Sorry, parameter: 'speed at 1RM' on exercise: '{0}' cannot be 0 for this analysis."),
eSQL.exerciseName) + "\n" +
eSQL.exerciseName) + "\n\n" +
Catalog.GetString("Please edit exercise parameters on capture tab."));
return;
}
......
......@@ -69,11 +69,8 @@ public class WebcamFfmpeg : Webcam
List<string> parameters = createParametersPlayPreview();
//process = new Process();
//bool success = ExecuteProcess.RunAtBackground (ref process, executable, parameters, false, false, false);
ExecuteProcess.Result r = ExecuteProcess.run (executable, parameters);
return new Result(r.success, r.stdout, r.stderr);
/*
process = new Process();
bool success = ExecuteProcess.RunAtBackground (ref process, executable, parameters, false, false, false);
if(! success)
{
process = null;
......@@ -82,7 +79,6 @@ public class WebcamFfmpeg : Webcam
Running = true;
return new Result (true, "");
*/
}
public override Result PlayFile (string filename)
......@@ -92,11 +88,8 @@ public class WebcamFfmpeg : Webcam
List<string> parameters = createParametersPlayFile (filename);
//process = new Process();
//bool success = ExecuteProcess.RunAtBackground (ref process, executable, parameters, false, false, false);
ExecuteProcess.Result r = ExecuteProcess.run (executable, parameters);
return new Result(r.success, r.stdout, r.stderr);
/*
process = new Process();
bool success = ExecuteProcess.RunAtBackground (ref process, executable, parameters, false, false, false);
if(! success)
{
process = null;
......@@ -105,7 +98,6 @@ public class WebcamFfmpeg : Webcam
Running = true;
return new Result (true, "");
*/
}
public override bool Snapshot()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment