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:
parent
b8e0855ef3
commit
0c4bf12bfd
2
NEWS
2
NEWS
|
@ -6,6 +6,8 @@ ver 0.23.2 (not yet released)
|
||||||
- pipewire: DSD support
|
- pipewire: DSD support
|
||||||
* neighbor
|
* neighbor
|
||||||
- mention failed plugin name in error message
|
- mention failed plugin name in error message
|
||||||
|
* player
|
||||||
|
- fix cross-fade regression
|
||||||
* fix crash with libfmt versions older than 7
|
* fix crash with libfmt versions older than 7
|
||||||
|
|
||||||
ver 0.23.1 (2021/10/19)
|
ver 0.23.1 (2021/10/19)
|
||||||
|
|
|
@ -34,8 +34,8 @@ inline bool
|
||||||
CrossFadeSettings::CanCrossFadeSong(SignedSongTime total_time) const noexcept
|
CrossFadeSettings::CanCrossFadeSong(SignedSongTime total_time) const noexcept
|
||||||
{
|
{
|
||||||
return !total_time.IsNegative() &&
|
return !total_time.IsNegative() &&
|
||||||
duration >= MIN_TOTAL_TIME &&
|
total_time >= MIN_TOTAL_TIME &&
|
||||||
duration >= std::chrono::duration_cast<FloatDuration>(total_time);
|
duration < std::chrono::duration_cast<FloatDuration>(total_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
|
|
Loading…
Reference in New Issue