mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Fix index seeking with tracks with no index 0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user