Merge pull request #6914 from marius-luca-87/dlna

This commit is contained in:
Cody Robibero 2021-12-02 06:56:07 -07:00 committed by GitHub
commit a474e4cf3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,7 @@ namespace Jellyfin.Api.Helpers
} }
var enableDlnaHeaders = !string.IsNullOrWhiteSpace(streamingRequest.Params) || var enableDlnaHeaders = !string.IsNullOrWhiteSpace(streamingRequest.Params) ||
streamingRequest.StreamOptions.ContainsKey("dlnaheaders") ||
string.Equals(httpRequest.Headers["GetContentFeatures.DLNA.ORG"], "1", StringComparison.OrdinalIgnoreCase); string.Equals(httpRequest.Headers["GetContentFeatures.DLNA.ORG"], "1", StringComparison.OrdinalIgnoreCase);
var state = new StreamState(mediaSourceManager, transcodingJobType, transcodingJobHelper) var state = new StreamState(mediaSourceManager, transcodingJobType, transcodingJobHelper)