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
|
// Ensure that the value is valid, wrapping around if necessary
|
||||||
if(value > track.Indexes.Keys.Max())
|
if(value > track.Indexes.Keys.Max())
|
||||||
_currentTrackIndex = 0;
|
_currentTrackIndex = track.Indexes.Keys.Min();
|
||||||
else if(value < 0)
|
else if(value < track.Indexes.Keys.Min())
|
||||||
_currentTrackIndex = track.Indexes.Keys.Max();
|
_currentTrackIndex = track.Indexes.Keys.Max();
|
||||||
else
|
else
|
||||||
_currentTrackIndex = value;
|
_currentTrackIndex = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user