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