output/haiku: remove size==0 check from Play()

By API contract, this parameter must not be zero.
This commit is contained in:
Max Kellermann 2018-01-02 17:45:14 +01:00
parent 67a8eedca0
commit f4a56f839f
1 changed files with 0 additions and 5 deletions

View File

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