mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
fix copy&paste error for requestedRangeTypes preventing stream copy
- add >=0 check to subtitle index check - fixes #8070, #7880
This commit is contained in:
parent
9cebdfdec0
commit
a41c67d16b
1 changed files with 2 additions and 1 deletions
|
@ -1713,6 +1713,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
|
||||
// Can't stream copy if we're burning in subtitles
|
||||
if (request.SubtitleStreamIndex.HasValue
|
||||
&& request.SubtitleStreamIndex.Value >= 0
|
||||
&& state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode)
|
||||
{
|
||||
return false;
|
||||
|
@ -1760,7 +1761,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
}
|
||||
|
||||
var requestedRangeTypes = state.GetRequestedRangeTypes(videoStream.Codec);
|
||||
if (requestedProfiles.Length > 0)
|
||||
if (requestedRangeTypes.Length > 0)
|
||||
{
|
||||
if (string.IsNullOrEmpty(videoStream.VideoRangeType))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue