mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #4213] [MERGED] Add ProgressiveFileStream #9951
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4213
Author: @cvium
Created: 9/26/2020
Status: ✅ Merged
Merged: 11/3/2020
Merged by: @Bond-009
Base:
master← Head:progressivefilestream📝 Commits (2)
6ca313aAdd ProgressiveFileStream146cad6Remove EOF counter📊 Changes
2 files changed (+164 additions, -3 deletions)
View changed files
📝
Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs(+2 -3)➕
Jellyfin.Api/Helpers/ProgressiveFileStream.cs(+162 -0)📄 Description
Changes
Made a stream wrapper based on ProgressiveFileCopier that essentially only implements ReadAsync. It opens the transcoded file as a
FileStreamand continues to read it until the transcode is complete.No more than the buffer size should be saved in memory, so hopefully no OOM regressions.
Issues
Fixes #4105
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.