mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
Fix typo
This commit is contained in:
parent
f919a05d43
commit
2852692250
2 changed files with 4 additions and 4 deletions
|
|
@ -30,21 +30,21 @@ public class FFMpegDownloader
|
||||||
// download ffmpeg if selected
|
// download ffmpeg if selected
|
||||||
if (binaries.HasFlag(FFMpegBinaries.FFMpeg) && downloadInfo.FFMpeg is not null)
|
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));
|
successList.AddRange(FFbinariesService.ExtractZipAndSave(zipStream));
|
||||||
}
|
}
|
||||||
|
|
||||||
// download ffprobe if selected
|
// download ffprobe if selected
|
||||||
if (binaries.HasFlag(FFMpegBinaries.FFProbe) && downloadInfo.FFProbe is not null)
|
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));
|
successList.AddRange(FFbinariesService.ExtractZipAndSave(zipStream));
|
||||||
}
|
}
|
||||||
|
|
||||||
// download ffplay if selected
|
// download ffplay if selected
|
||||||
if (binaries.HasFlag(FFMpegBinaries.FFPlay) && downloadInfo.FFPlay is not null)
|
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));
|
successList.AddRange(FFbinariesService.ExtractZipAndSave(zipStream));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ internal class FFbinariesService
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="address">uri of the file</param>
|
/// <param name="address">uri of the file</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
internal static async Task<Stream> DownloadFileAsSteam(Uri address)
|
internal static async Task<Stream> DownloadFileAsStream(Uri address)
|
||||||
{
|
{
|
||||||
var client = new HttpClient();
|
var client = new HttpClient();
|
||||||
return await client.GetStreamAsync(address);
|
return await client.GetStreamAsync(address);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue