[longomatch] Fix execution of ffmpeg command in Windows



commit 513f14309bc53bb72b27f452bba30d651da7c382
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Dec 14 22:38:55 2012 +0100

    Fix execution of ffmpeg command in Windows

 LongoMatch.Multimedia/Utils/MpegRemuxer.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Multimedia/Utils/MpegRemuxer.cs b/LongoMatch.Multimedia/Utils/MpegRemuxer.cs
index e2f5567..acc4b64 100644
--- a/LongoMatch.Multimedia/Utils/MpegRemuxer.cs
+++ b/LongoMatch.Multimedia/Utils/MpegRemuxer.cs
@@ -97,10 +97,13 @@ namespace LongoMatch.Video.Utils
 			int ret = 1;
 			ProcessStartInfo startInfo = new ProcessStartInfo();
 			startInfo.CreateNoWindow = true;
-			startInfo.UseShellExecute = false;
+			if (System.Environment.OSVersion.Platform != PlatformID.Win32NT) {
+				startInfo.UseShellExecute = false;
+			}
 			startInfo.FileName = "ffmpeg";
 			startInfo.Arguments = String.Format("-i {0} -vcodec copy -acodec copy -y -sn {1} ",
 			                                    filepath, newFilepath);
+
 			using (System.Diagnostics.Process exeProcess = System.Diagnostics.Process.Start(startInfo))
 			{
 				exeProcess.WaitForExit();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]