소스 검색

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

Stéphane Senart 4 년 전
부모
커밋
3164781ce0
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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)