output/fifo: make variables more local
This commit is contained in:
parent
987c02e946
commit
84c9260dc4
|
@ -260,14 +260,13 @@ fifo_output_play(AudioOutput *ao, const void *chunk, size_t size,
|
||||||
Error &error)
|
Error &error)
|
||||||
{
|
{
|
||||||
FifoOutput *fd = (FifoOutput *)ao;
|
FifoOutput *fd = (FifoOutput *)ao;
|
||||||
ssize_t bytes;
|
|
||||||
|
|
||||||
if (!fd->timer->IsStarted())
|
if (!fd->timer->IsStarted())
|
||||||
fd->timer->Start();
|
fd->timer->Start();
|
||||||
fd->timer->Add(size);
|
fd->timer->Add(size);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
bytes = write(fd->output, chunk, size);
|
ssize_t bytes = write(fd->output, chunk, size);
|
||||||
if (bytes > 0)
|
if (bytes > 0)
|
||||||
return (size_t)bytes;
|
return (size_t)bytes;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue