output/fifo: make variables more local

This commit is contained in:
Max Kellermann 2014-12-28 00:48:05 +01:00
parent 987c02e946
commit 84c9260dc4
1 changed files with 1 additions and 2 deletions

View File

@ -260,14 +260,13 @@ fifo_output_play(AudioOutput *ao, const void *chunk, size_t size,
Error &error)
{
FifoOutput *fd = (FifoOutput *)ao;
ssize_t bytes;
if (!fd->timer->IsStarted())
fd->timer->Start();
fd->timer->Add(size);
while (true) {
bytes = write(fd->output, chunk, size);
ssize_t bytes = write(fd->output, chunk, size);
if (bytes > 0)
return (size_t)bytes;