Explorar o código

[5644] [DLNA] [Music] Next track command from any DLNA device does not do anything.

Stéphane Senart %!s(int64=4) %!d(string=hai) anos
pai
achega
3164781ce0
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Emby.Dlna/PlayTo/PlayToController.cs

+ 5 - 0
Emby.Dlna/PlayTo/PlayToController.cs

@@ -175,6 +175,11 @@ namespace Emby.Dlna.PlayTo
 
                 // Send a message to the DLNA device to notify what is the next track in the playlist.
                 var currentItemIndex = _playlist.FindIndex(item => item.StreamInfo.ItemId == streamInfo.ItemId);
+                if (currentItemIndex >= 0)
+                {
+                    _currentPlaylistIndex = currentItemIndex;
+                }
+
                 await SendNextTrackMessage(currentItemIndex, CancellationToken.None);
             }
             catch (Exception ex)