Commit b5bc3bba authored by Xavier de Blas's avatar Xavier de Blas

playpreview and play with run instead of RunAtBackground

parent 6388d27e
......@@ -69,8 +69,11 @@ public class WebcamFfmpeg : Webcam
List<string> parameters = createParametersPlayPreview();
process = new Process();
bool success = ExecuteProcess.RunAtBackground (ref process, executable, parameters, false, false, false);
//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);
/*
if(! success)
{
process = null;
......@@ -79,6 +82,7 @@ public class WebcamFfmpeg : Webcam
Running = true;
return new Result (true, "");
*/
}
public override Result PlayFile (string filename)
......@@ -88,8 +92,11 @@ public class WebcamFfmpeg : Webcam
List<string> parameters = createParametersPlayFile (filename);
process = new Process();
bool success = ExecuteProcess.RunAtBackground (ref process, executable, parameters, false, false, false);
//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);
/*
if(! success)
{
process = null;
......@@ -98,6 +105,7 @@ 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