Merge pull request #755 from 7illusions/master

Identification bugfix
This commit is contained in:
Luke 2014-03-26 14:07:36 -04:00
commit 4a8fbad50f

View file

@ -127,6 +127,12 @@ namespace MediaBrowser.Dlna
private bool IsMatch(DeviceIdentification deviceInfo, DeviceIdentification profileInfo)
{
if (profileInfo == null)
{
//There are profiles without identification, ignore thoose
return false;
}
if (!string.IsNullOrWhiteSpace(profileInfo.DeviceDescription))
{
if (deviceInfo.DeviceDescription == null || !Regex.IsMatch(deviceInfo.DeviceDescription, profileInfo.DeviceDescription))