use profile id in streaming service

This commit is contained in:
Luke Pulverenti
2014-03-26 11:17:36 -04:00
parent 4e2764e516
commit de19966074
4 changed files with 28 additions and 7 deletions

View File

@@ -1492,7 +1492,16 @@ namespace MediaBrowser.Api.Playback
headers[key] = Request.Headers[key];
}
var profile = DlnaManager.GetProfile(headers);
var profile = string.IsNullOrWhiteSpace(state.Request.DeviceProfileId) ?
DlnaManager.GetProfile(headers) :
DlnaManager.GetProfile(state.Request.DeviceProfileId);
if (profile == null)
{
// Don't use settings from the default profile.
// Only use a specific profile if it was requested.
return;
}
var container = Path.GetExtension(state.RequestedUrl);