Skip to content

Commit

Permalink
Fix GetPipePath() for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ep1kt3t0s committed Dec 11, 2022
1 parent be14b11 commit 1a075fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.IO;
using System.Runtime.InteropServices;

namespace FFMpegCore.Pipes
Expand All @@ -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}";
}
}
}
8 changes: 5 additions & 3 deletions FFMpegCore/FFMpegCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<NeutralLanguage>en</NeutralLanguage>
<RepositoryUrl>https://github.com/rosenbjerg/FFMpegCore</RepositoryUrl>
<PackageProjectUrl>https://github.com/rosenbjerg/FFMpegCore</PackageProjectUrl>
<RepositoryUrl>https://github.com/ep1kt3t0s/FFMpegCore</RepositoryUrl>
<PackageProjectUrl>https://github.com/ep1kt3t0s/FFMpegCore</PackageProjectUrl>
<Copyright></Copyright>
<Description>A .NET Standard FFMpeg/FFProbe wrapper for easily integrating media analysis and conversion into your .NET applications</Description>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
Expand All @@ -19,14 +19,16 @@
- Updates to dependendies
- A lot of bug fixes</PackageReleaseNotes>
<LangVersion>8</LangVersion>
<PackageVersion>4.8.0</PackageVersion>
<PackageVersion>4.8.1</PackageVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Authors>Malte Rosenbjerg, Vlad Jerca, Max Bagryantsev</Authors>
<PackageTags>ffmpeg ffprobe convert video audio mediafile resize analyze muxing</PackageTags>
<RepositoryType>GitHub</RepositoryType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Nullable>enable</Nullable>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>FFMpegCore-ep1kt3t0s</AssemblyName>
<RootNamespace>FFMpegCore-ep1kt3t0s</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 1a075fc

Please sign in to comment.