[chronojump] playpreview and play with run instead of RunAtBackground
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] playpreview and play with run instead of RunAtBackground
- Date: Wed, 9 Jan 2019 19:48:15 +0000 (UTC)
commit b5bc3bba9fe6e519063e52c918ef92ddb5e5fff4
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jan 9 20:47:34 2019 +0100
playpreview and play with run instead of RunAtBackground
src/webcamFfmpeg.cs | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/src/webcamFfmpeg.cs b/src/webcamFfmpeg.cs
index a84f5229..dd8f1113 100644
--- a/src/webcamFfmpeg.cs
+++ b/src/webcamFfmpeg.cs
@@ -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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]