mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 20:46:43 +00:00
Move .ConfigureAwait(false) in StreamPipeSink to inside ReadAsync to fix failure in ubuntu CI
Former-commit-id: 936da48ca2
This commit is contained in:
parent
5ceebfba59
commit
4c54ff18b9
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