diff --git a/FFMpegCore.Extensions.Downloader/FFMpegDownloader.cs b/FFMpegCore.Extensions.Downloader/FFMpegDownloader.cs index 0def62b..9cad618 100644 --- a/FFMpegCore.Extensions.Downloader/FFMpegDownloader.cs +++ b/FFMpegCore.Extensions.Downloader/FFMpegDownloader.cs @@ -30,21 +30,21 @@ public class FFMpegDownloader // download ffmpeg if selected if (binaries.HasFlag(FFMpegBinaries.FFMpeg) && downloadInfo.FFMpeg is not null) { - await using var zipStream = await FFbinariesService.DownloadFileAsSteam(new Uri(downloadInfo.FFMpeg)); + await using var zipStream = await FFbinariesService.DownloadFileAsStream(new Uri(downloadInfo.FFMpeg)); successList.AddRange(FFbinariesService.ExtractZipAndSave(zipStream)); } // download ffprobe if selected if (binaries.HasFlag(FFMpegBinaries.FFProbe) && downloadInfo.FFProbe is not null) { - await using var zipStream = await FFbinariesService.DownloadFileAsSteam(new Uri(downloadInfo.FFProbe)); + await using var zipStream = await FFbinariesService.DownloadFileAsStream(new Uri(downloadInfo.FFProbe)); successList.AddRange(FFbinariesService.ExtractZipAndSave(zipStream)); } // download ffplay if selected if (binaries.HasFlag(FFMpegBinaries.FFPlay) && downloadInfo.FFPlay is not null) { - await using var zipStream = await FFbinariesService.DownloadFileAsSteam(new Uri(downloadInfo.FFPlay)); + await using var zipStream = await FFbinariesService.DownloadFileAsStream(new Uri(downloadInfo.FFPlay)); successList.AddRange(FFbinariesService.ExtractZipAndSave(zipStream)); } diff --git a/FFMpegCore.Extensions.Downloader/Services/FFbinariesService.cs b/FFMpegCore.Extensions.Downloader/Services/FFbinariesService.cs index 1b7edc2..479d264 100644 --- a/FFMpegCore.Extensions.Downloader/Services/FFbinariesService.cs +++ b/FFMpegCore.Extensions.Downloader/Services/FFbinariesService.cs @@ -42,7 +42,7 @@ internal class FFbinariesService /// /// uri of the file /// - internal static async Task DownloadFileAsSteam(Uri address) + internal static async Task DownloadFileAsStream(Uri address) { var client = new HttpClient(); return await client.GetStreamAsync(address);