Correction mplayer
This commit is contained in:
parent
6dc84ae469
commit
7982ff2f7f
2 changed files with 4 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{2CB55300-0A5B-4DFA-8984-B7EC4C455962}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
|
|
@ -46,7 +46,6 @@
|
|||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
|
||||
<Private>False</Private>
|
||||
<Package>gtk-sharp-2.0</Package>
|
||||
</Reference>
|
||||
<Reference Include="System.Web" />
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue