player_thread: disable cross-fading in "single" mode

This commit reimplements the core of the "single" mode.  Instead of
doing the detection in the playlist code from the outside, it is moved
to the player thread, which gets a new option called "border_pause".
It will now pause playback exactly at the beginning of the new song,
making the feature more reliable.

Now that the player thread knows what will happen, it can suppress
cross-fading.

Fixes mantis tickets 0003055 and 0003166.
This commit is contained in:
Max Kellermann
2012-08-25 08:44:31 +02:00
parent 66ecf39efe
commit f351550534
5 changed files with 48 additions and 8 deletions

1
NEWS
View File

@@ -14,6 +14,7 @@ ver 0.17.2 (2012/??/??)
* playlist: fix use-after-free bug
* playlist: fix memory leak
* state_file: save song priorities
* player: disable cross-fading in "single" mode
ver 0.17.1 (2012/07/31)