Browse Source

fix potential crash with recent marathon updates (#2095)

pull/2096/head
Jason Dove 2 months ago committed by GitHub
parent
commit
35116c64cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      ErsatzTV.Core/Scheduling/PlaylistEnumerator.cs

4
ErsatzTV.Core/Scheduling/PlaylistEnumerator.cs

@ -82,9 +82,9 @@ public class PlaylistEnumerator : IMediaCollectionEnumerator @@ -82,9 +82,9 @@ public class PlaylistEnumerator : IMediaCollectionEnumerator
public int EnumeratorIndex => _enumeratorIndex;
public void SetEnumeratorIndex(int primaryHistoryIndex)
public void SetEnumeratorIndex(int enumeratorIndex)
{
_enumeratorIndex = primaryHistoryIndex;
_enumeratorIndex = enumeratorIndex % _sortedEnumerators.Count;
}
public static async Task<PlaylistEnumerator> Create(

Loading…
Cancel
Save