player/Thread: pause all outputs in single mode

This mostly affects the Pulse output plugin which needs to "cork" the
stream (closes #278).
This commit is contained in:
Max Kellermann 2018-05-12 14:44:07 +02:00
parent d495ec71a8
commit c76f4ac89b
2 changed files with 3 additions and 0 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.20.20 (not yet released)
* protocol
- fix "modified-since" filter regression
* output
- pulse: cork stream when paused due to "single" mode
* decoder
- dsdiff, dsf: support more MIME types
- dsdiff, dsf: allow 4 MB ID3 tags

View File

@ -950,6 +950,7 @@ Player::SongBorder()
const bool border_pause = pc.LockApplyBorderPause();
if (border_pause) {
paused = true;
pc.outputs.Pause();
idle_add(IDLE_PLAYER);
}
}