summaryrefslogtreecommitdiff
path: root/src/output/Interface.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-08-31 15:02:15 +0200
committerMax Kellermann <max@musicpd.org>2017-08-31 15:02:15 +0200
commit91438b6540d966edf56227a975db92465f7625a0 (patch)
tree224ef35d8d0d1b8d25d9005131c03b4855aeccba /src/output/Interface.hxx
parent987c505906c24a7cfba353d5130cc61a4283601c (diff)
output/Interface: the default Pause() implementation fails
Fixes regression from commit 31bad5f7af6cb59a276319a9fc1bb9ceebdc79ff: if Pause() returns true, the output thread is running a busy loop, causing 100% CPU usage, instead of just closing the output. Closes #105
Diffstat (limited to 'src/output/Interface.hxx')
-rw-r--r--src/output/Interface.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/output/Interface.hxx b/src/output/Interface.hxx
index 83737df5b..70e47b273 100644
--- a/src/output/Interface.hxx
+++ b/src/output/Interface.hxx
@@ -141,7 +141,10 @@ public:
* @return false on error (output will be closed by caller),
* true for continue to pause
*/
- virtual bool Pause() noexcept { return true; }
+ virtual bool Pause() noexcept {
+ /* fail because this method is not implemented */
+ return false;
+ }
};
#endif