Commit 0c4bf12b authored by Max Kellermann's avatar Max Kellermann

player/CrossFade: fix inverted check and wrong variable

The inverted check was introduced by commit 46d00dd8, and commit 8ad17d25 added a check for the wrong variable. D'oh! Closes https://github.com/MusicPlayerDaemon/MPD/issues/1303
parent b8e0855e
......@@ -6,6 +6,8 @@ ver 0.23.2 (not yet released)
- pipewire: DSD support
* neighbor
- mention failed plugin name in error message
* player
- fix cross-fade regression
* fix crash with libfmt versions older than 7
ver 0.23.1 (2021/10/19)
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment