summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-02 17:45:14 +0100
committerMax Kellermann <max@musicpd.org>2018-01-02 17:45:14 +0100
commitf4a56f839f2eb0d42cc103cb3ad7f15e7d83879a (patch)
tree88217cf8ba08af31d51ada10953cdc3244d612ab /src/output
parent67a8eedca0b78a52d1cc4c90babb4022976429a5 (diff)
output/haiku: remove size==0 check from Play()
By API contract, this parameter must not be zero.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/HaikuOutputPlugin.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/output/plugins/HaikuOutputPlugin.cxx b/src/output/plugins/HaikuOutputPlugin.cxx
index edba7243f..9c423fbd3 100644
--- a/src/output/plugins/HaikuOutputPlugin.cxx
+++ b/src/output/plugins/HaikuOutputPlugin.cxx
@@ -266,11 +266,6 @@ HaikuOutput::Play(const void *chunk, size_t size)
BSoundPlayer* const soundPlayer = sound_player;
const uint8 *data = (const uint8 *)chunk;
- if (size == 0) {
- soundPlayer->SetHasData(false);
- return 0;
- }
-
if (!soundPlayer->HasData())
soundPlayer->SetHasData(true);
acquire_sem(new_buffer);