|
@@ -65,7 +65,7 @@ namespace MediaBrowser.Model.Dlna
|
|
|
if (streamInfo is not null)
|
|
|
{
|
|
|
streamInfo.DeviceId = options.DeviceId;
|
|
|
- streamInfo.DeviceProfileId = options.Profile.Id.ToString("N", CultureInfo.InvariantCulture);
|
|
|
+ streamInfo.DeviceProfileId = options.Profile.Id?.ToString("N", CultureInfo.InvariantCulture);
|
|
|
streams.Add(streamInfo);
|
|
|
}
|
|
|
}
|
|
@@ -240,7 +240,7 @@ namespace MediaBrowser.Model.Dlna
|
|
|
foreach (var stream in streams)
|
|
|
{
|
|
|
stream.DeviceId = options.DeviceId;
|
|
|
- stream.DeviceProfileId = options.Profile.Id.ToString("N", CultureInfo.InvariantCulture);
|
|
|
+ stream.DeviceProfileId = options.Profile.Id?.ToString("N", CultureInfo.InvariantCulture);
|
|
|
}
|
|
|
|
|
|
return GetOptimalStream(streams, options.GetMaxBitrate(false) ?? 0);
|