Add ConfigureAwait true in MediaBrowser.Providers/MediaInfo/AudioResolver.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Jonas Resch 2021-11-30 20:45:47 +01:00 committed by GitHub
parent a9a53dc657
commit 7b50048020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ namespace MediaBrowser.Providers.MediaInfo
foreach (string path in paths) foreach (string path in paths)
{ {
string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(path); string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(path);
Model.MediaInfo.MediaInfo mediaInfo = await GetMediaInfo(path, cancellationToken); Model.MediaInfo.MediaInfo mediaInfo = await GetMediaInfo(path, cancellationToken).ConfigureAwait(false);
foreach (MediaStream mediaStream in mediaInfo.MediaStreams) foreach (MediaStream mediaStream in mediaInfo.MediaStreams)
{ {