mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Move .ConfigureAwait(false) in StreamPipeSink to inside ReadAsync to fix failure in ubuntu CI
This commit is contained in:
parent
6377c50de7
commit
936da48ca2
1 changed files with 3 additions and 3 deletions
|
@ -17,11 +17,11 @@ public StreamPipeSink(Func<Stream, CancellationToken, Task> writer)
|
||||||
}
|
}
|
||||||
public StreamPipeSink(Stream destination)
|
public StreamPipeSink(Stream destination)
|
||||||
{
|
{
|
||||||
Writer = async (inputStream, cancellationToken) => await inputStream.CopyToAsync(destination, BlockSize, cancellationToken).ConfigureAwait(false);
|
Writer = (inputStream, cancellationToken) => inputStream.CopyToAsync(destination, BlockSize, cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task ReadAsync(Stream inputStream, CancellationToken cancellationToken)
|
public async Task ReadAsync(Stream inputStream, CancellationToken cancellationToken)
|
||||||
=> Writer(inputStream, cancellationToken);
|
=> await Writer(inputStream, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
public string GetFormat() => Format;
|
public string GetFormat() => Format;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue