From 7982ff2f7fa234df071408c5a8da903b3632a1d8 Mon Sep 17 00:00:00 2001 From: manu Date: Sun, 2 Apr 2017 20:43:58 +0200 Subject: [PATCH] Correction mplayer --- DMX-2.0/DMX-2.0.csproj | 3 +-- DMX-2.0/SequenceurSon.cs | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DMX-2.0/DMX-2.0.csproj b/DMX-2.0/DMX-2.0.csproj index 67608e0..b203fc0 100644 --- a/DMX-2.0/DMX-2.0.csproj +++ b/DMX-2.0/DMX-2.0.csproj @@ -3,7 +3,7 @@ Debug AnyCPU - 10.0.0 + 8.0.30703 2.0 {2CB55300-0A5B-4DFA-8984-B7EC4C455962} WinExe @@ -46,7 +46,6 @@ - False gtk-sharp-2.0 diff --git a/DMX-2.0/SequenceurSon.cs b/DMX-2.0/SequenceurSon.cs index 8e95b1f..29e66aa 100644 --- a/DMX-2.0/SequenceurSon.cs +++ b/DMX-2.0/SequenceurSon.cs @@ -86,7 +86,7 @@ namespace DMX2 mplayerProcess.Dispose (); ProcessStartInfo startinfo = new ProcessStartInfo (); startinfo.FileName = "mplayer"; - startinfo.Arguments = "--quiet --idle --slave"; + startinfo.Arguments = "-quiet -idle -slave"; startinfo.RedirectStandardInput = true; startinfo.RedirectStandardOutput = true; startinfo.UseShellExecute = false; @@ -102,6 +102,8 @@ namespace DMX2 void ProcessMplayerOut (object sender, DataReceivedEventArgs e) { string data = e.Data; + if (data == null) + return; if (data.StartsWith ("ANS_LENGTH")) { string d = data.Substring (11); double dData;