mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Add .ConfigureAwait(false) in StreamPipeSink Writer function
Former-commit-id: e0385dcfdb
This commit is contained in:
parent
f5745b9670
commit
8ba0d7deef
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ public StreamPipeSink(Func<Stream, CancellationToken, Task> writer)
|
|||
}
|
||||
public StreamPipeSink(Stream destination)
|
||||
{
|
||||
Writer = (inputStream, cancellationToken) => inputStream.CopyToAsync(destination, BlockSize, cancellationToken);
|
||||
Writer = async (inputStream, cancellationToken) => await inputStream.CopyToAsync(destination, BlockSize, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public Task ReadAsync(Stream inputStream, CancellationToken cancellationToken)
|
||||
|
|
Loading…
Reference in a new issue