mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Fix GetPipePath() for MacOS
This commit is contained in:
parent
abc7d9463a
commit
75e4f6f257
1 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace FFMpegCore.Pipes
|
namespace FFMpegCore.Pipes
|
||||||
|
@ -11,7 +12,8 @@ public static string GetPipePath(string pipeName)
|
||||||
{
|
{
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
return $@"\\.\pipe\{pipeName}";
|
return $@"\\.\pipe\{pipeName}";
|
||||||
else
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||||
|
return $"unix:{Path.GetTempPath()}/CoreFxPipe_{pipeName}";
|
||||||
return $"unix:/tmp/CoreFxPipe_{pipeName}";
|
return $"unix:/tmp/CoreFxPipe_{pipeName}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue