The Free Software Media System - Server Backend & API
Apply suggestions from code review
Claus Viume134a3677cf0
diff --git a/Emby.Dlna/PlayTo/Device.cs b/Emby.Dlna/PlayTo/Device.csindex 9d45e89df7..7ac368f548 100644--- a/Emby.Dlna/PlayTo/Device.cs+++ b/Emby.Dlna/PlayTo/Device.cs@@ -378,9 +378,9 @@ namespace Emby.Dlna.PlayTourl = url.Replace("&", "&", StringComparison.Ordinal);- _logger.LogDebug("{0} - SetNextAvTransport Uri: {1} DlnaHeaders: {2}", Properties.Name, url, header);+ _logger.LogDebug("{PropertyName} - SetNextAvTransport Uri: {Url} DlnaHeaders: {Header}", Properties.Name, url, header);- var command = avCommands.ServiceActions.FirstOrDefault(c => c.Name == "SetNextAVTransportURI");+ var command = avCommands.ServiceActions.FirstOrDefault(c => string.Equals(c.Name, "SetNextAVTransportURI", StringComparison.OrdinalIgnoreCase);if (command == null){return;diff --git a/Emby.Dlna/PlayTo/PlayToController.cs b/Emby.Dlna/PlayTo/PlayToController.csindex 41723bc6c5..4376a35221 100644--- a/Emby.Dlna/PlayTo/PlayToController.cs+++ b/Emby.Dlna/PlayTo/PlayToController.cs@@ -654,7 +654,7 @@ namespace Emby.Dlna.PlayToawait _device.SetAvTransport(currentitem.StreamUrl, GetDlnaHeaders(currentitem), currentitem.Didl, cancellationToken).ConfigureAwait(false);// Send a message to the DLNA device to notify what is the next track in the play list.- await SendNextTrackMessage(index, CancellationToken.None);+ await SendNextTrackMessage(index, cancellationToken);var streamInfo = currentitem.StreamInfo;if (streamInfo.StartPositionTicks > 0 && EnableClientSideSeek(streamInfo))