mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-31 10:36:43 +00: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)
|
||||
{
|
||||
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)
|
||||
=> Writer(inputStream, cancellationToken);
|
||||
public async Task ReadAsync(Stream inputStream, CancellationToken cancellationToken)
|
||||
=> await Writer(inputStream, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
public string GetFormat() => Format;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue