diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-05-09 15:21:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-09 15:21:24 -0400 |
| commit | f4a73e90d2b06a93f0afb1153a5178e341523af4 (patch) | |
| tree | d4829ee7d44aeef8ea7d197b475afaa87c9e212c /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | c8c4eb3ab5ff88aa7f756c096b4f896e0dae68f7 (diff) | |
| parent | 9931f055a86dada900d20567d4e5e7bc99447c5d (diff) | |
Merge pull request #2625 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index daec00e10..67921ab34 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -671,12 +671,15 @@ namespace MediaBrowser.Api.Playback request.AudioCodec = EncodingHelper.InferAudioCodec(url); } + var enableDlnaHeaders = !string.IsNullOrWhiteSpace(request.Params) /*|| + string.Equals(Request.Headers.Get("GetContentFeatures.DLNA.ORG"), "1", StringComparison.OrdinalIgnoreCase)*/; + var state = new StreamState(MediaSourceManager, Logger, TranscodingJobType) { Request = request, RequestedUrl = url, UserAgent = Request.UserAgent, - EnableDlnaHeaders = !string.IsNullOrWhiteSpace(request.Params) + EnableDlnaHeaders = enableDlnaHeaders }; var auth = AuthorizationContext.GetAuthorizationInfo(Request); |
