From c76f4ac89bb8a79c2af417d418ae14c5f190f1a2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 May 2018 14:44:07 +0200 Subject: [PATCH] player/Thread: pause all outputs in single mode This mostly affects the Pulse output plugin which needs to "cork" the stream (closes #278). --- NEWS | 2 ++ src/player/Thread.cxx | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 53f24ed5f..06685148b 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index 651117088..fcb7b39da 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -950,6 +950,7 @@ Player::SongBorder() const bool border_pause = pc.LockApplyBorderPause(); if (border_pause) { paused = true; + pc.outputs.Pause(); idle_add(IDLE_PLAYER); } }