aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-28 00:48:05 +0100
committerMax Kellermann <max@duempel.org>2014-12-28 00:48:05 +0100
commit84c9260dc44b24ceb6f8e8d0f574e8f1d2fdd351 (patch)
treedc264755175b8ec6d4e2b6078bca287a87184c5e /src/output/plugins
parent987c02e946157574d5c6e5e0eda55b5fd5a258ab (diff)
downloadmpd-84c9260dc44b24ceb6f8e8d0f574e8f1d2fdd351.tar.gz
mpd-84c9260dc44b24ceb6f8e8d0f574e8f1d2fdd351.tar.xz
mpd-84c9260dc44b24ceb6f8e8d0f574e8f1d2fdd351.zip
output/fifo: make variables more local
Diffstat (limited to 'src/output/plugins')
-rw-r--r--src/output/plugins/FifoOutputPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output/plugins/FifoOutputPlugin.cxx b/src/output/plugins/FifoOutputPlugin.cxx
index 9df5a74dd..b4d867aaf 100644
--- a/src/output/plugins/FifoOutputPlugin.cxx
+++ b/src/output/plugins/FifoOutputPlugin.cxx
@@ -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;