player/CrossFade: fix inverted check and wrong variable
The inverted check was introduced by commit46d00dd85f
, and commit8ad17d25ef
added a check for the wrong variable. D'oh! Closes https://github.com/MusicPlayerDaemon/MPD/issues/1303
This commit is contained in:
@@ -34,8 +34,8 @@ inline bool
|
||||
CrossFadeSettings::CanCrossFadeSong(SignedSongTime total_time) const noexcept
|
||||
{
|
||||
return !total_time.IsNegative() &&
|
||||
duration >= MIN_TOTAL_TIME &&
|
||||
duration >= std::chrono::duration_cast<FloatDuration>(total_time);
|
||||
total_time >= MIN_TOTAL_TIME &&
|
||||
duration < std::chrono::duration_cast<FloatDuration>(total_time);
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
|
Reference in New Issue
Block a user