mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-18 13:40:45 +01:00
Extend TranscodingReason reporting
This commit is contained in:
@@ -515,6 +515,15 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
|
||||
public int HlsListSize => 0;
|
||||
|
||||
/// <summary>
|
||||
/// Adds the specified reason(s) to <see cref="TranscodeReasons"/>.
|
||||
/// </summary>
|
||||
/// <param name="reason">The transcode reason(s) to add.</param>
|
||||
public void AddTranscodeReason(TranscodeReason reason)
|
||||
{
|
||||
_transcodeReasons = TranscodeReasons | reason;
|
||||
}
|
||||
|
||||
private int? GetMediaStreamCount(MediaStreamType type, int limit)
|
||||
{
|
||||
var count = MediaSource.GetStreamCount(type);
|
||||
|
||||
Reference in New Issue
Block a user