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
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)
|
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