[chronojump] executeProcess.RunAtBackground passes process as reference
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] executeProcess.RunAtBackground passes process as reference
- Date: Mon, 15 Oct 2018 18:00:24 +0000 (UTC)
commit 891643c74771e733bffcd9c27c5290ca612eb4fb
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Oct 15 19:59:21 2018 +0200
executeProcess.RunAtBackground passes process as reference
src/executeProcess.cs | 2 +-
src/webcamFfmpeg.cs | 2 +-
src/webcamMplayer.cs | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/executeProcess.cs b/src/executeProcess.cs
index 2c3443a5..49b9e620 100644
--- a/src/executeProcess.cs
+++ b/src/executeProcess.cs
@@ -136,7 +136,7 @@ class ExecuteProcess
* don't call WaitForExit(), kill it on Chronojump exit
* returns false if there are problems calling it
*/
- public static bool RunAtBackground(Process process, string file_name, List<string> parameters, bool
redirectInput)
+ public static bool RunAtBackground(ref Process process, string file_name, List<string> parameters,
bool redirectInput)
{
ProcessStartInfo processStartInfo = new ProcessStartInfo();
diff --git a/src/webcamFfmpeg.cs b/src/webcamFfmpeg.cs
index a7ad2cc2..7ebeaf31 100644
--- a/src/webcamFfmpeg.cs
+++ b/src/webcamFfmpeg.cs
@@ -72,7 +72,7 @@ public class WebcamFfmpeg : Webcam
process = new Process();
List<string> parameters = createParametersOnlyCapture();
//List<string> parameters = createParametersCaptureAndDelayedView();
- bool success = ExecuteProcess.RunAtBackground (process, captureExecutable, parameters, true);
//redirectInput
+ bool success = ExecuteProcess.RunAtBackground (ref process, captureExecutable, parameters,
true); //redirectInput
if(! success)
{
streamWriter = null;
diff --git a/src/webcamMplayer.cs b/src/webcamMplayer.cs
index ba09d304..11d49e41 100644
--- a/src/webcamMplayer.cs
+++ b/src/webcamMplayer.cs
@@ -71,7 +71,7 @@ public class WebcamMplayer : Webcam
parameters.Insert (i ++, "screenshot=" +
Util.GetMplayerPhotoTempFileNamePre(videoDeviceToFilename()));
process = new Process();
- bool success = ExecuteProcess.RunAtBackground (process, captureExecutable, parameters, true);
//redirectInput
+ bool success = ExecuteProcess.RunAtBackground (ref process, captureExecutable, parameters,
true); //redirectInput
if(! success)
{
streamWriter = null;
@@ -118,7 +118,7 @@ public class WebcamMplayer : Webcam
process = new Process();
- bool success = ExecuteProcess.RunAtBackground (process, executable, parameters, false);
+ bool success = ExecuteProcess.RunAtBackground (ref process, executable, parameters, false);
if(! success)
{
process = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]