From 8ba0d7deefa6529bca0eab3251946f46db944280 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Mon, 1 Nov 2021 18:53:33 +0100 Subject: [PATCH] Add .ConfigureAwait(false) in StreamPipeSink Writer function Former-commit-id: e0385dcfdb3fe9dd678c5044c57fcdb8de3f31a7 --- FFMpegCore/FFMpeg/Pipes/StreamPipeSink.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFMpegCore/FFMpeg/Pipes/StreamPipeSink.cs b/FFMpegCore/FFMpeg/Pipes/StreamPipeSink.cs index addc14e..f03c1db 100644 --- a/FFMpegCore/FFMpeg/Pipes/StreamPipeSink.cs +++ b/FFMpegCore/FFMpeg/Pipes/StreamPipeSink.cs @@ -17,7 +17,7 @@ public StreamPipeSink(Func 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)