output/Interface: the default Pause() implementation fails

Fixes regression from commit 31bad5f7af:
if Pause() returns true, the output thread is running a busy loop,
causing 100% CPU usage, instead of just closing the output.

Closes #105
This commit is contained in:
Max Kellermann 2017-08-31 15:02:15 +02:00
parent 987c505906
commit 91438b6540

View File

@ -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