[chronojump] playpreview and play with RunAtBackground (again)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] playpreview and play with RunAtBackground (again)
- Date: Thu, 7 Feb 2019 15:27:45 +0000 (UTC)
commit 7a08d7e853667b45e2194b624d9e520a88d9804e
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Feb 7 16:27:03 2019 +0100
playpreview and play with RunAtBackground (again)
src/gui/encoder.cs | 2 +-
src/webcamFfmpeg.cs | 16 ++++------------
2 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 56239a0c..59d3e8d4 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -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;
}
diff --git a/src/webcamFfmpeg.cs b/src/webcamFfmpeg.cs
index dd8f1113..a84f5229 100644
--- a/src/webcamFfmpeg.cs
+++ b/src/webcamFfmpeg.cs
@@ -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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]