Fix index seeking with tracks with no index 0

This commit is contained in:
Matt Nadareski
2021-07-03 15:36:51 -07:00
parent 83fc88ff6a
commit faba0ffada

View File

@@ -79,8 +79,8 @@ namespace RedBookPlayer.Discs
// Ensure that the value is valid, wrapping around if necessary
if(value > track.Indexes.Keys.Max())
_currentTrackIndex = 0;
else if(value < 0)
_currentTrackIndex = track.Indexes.Keys.Min();
else if(value < track.Indexes.Keys.Min())
_currentTrackIndex = track.Indexes.Keys.Max();
else
_currentTrackIndex = value;