Skip to content

Commit ca0cd79

Browse files
Benoit Robinjosephnhtam
Benoit Robin
authored andcommitted
Fix System.IO.IOException if the path is an url
1 parent f48ac09 commit ca0cd79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LiveStreamingServerNet.StreamProcessor/Internal/FFmpeg/FFmpegProcess.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public async Task RunAsync(
3232
OnStreamProcessorEnded? onEnded,
3333
CancellationToken cancellation)
3434
{
35-
DirectoryUtility.CreateDirectoryIfNotExists(Path.GetDirectoryName(_config.OutputPath));
35+
if (!Uri.IsWellFormedUriString(inputPath, UriKind.Absolute))
36+
DirectoryUtility.CreateDirectoryIfNotExists(Path.GetDirectoryName(_config.OutputPath));
3637
await RunProcessAsync(inputPath, _config.OutputPath, onStarted, onEnded, cancellation);
3738
}
3839

0 commit comments

Comments
 (0)