summaryrefslogtreecommitdiff
path: root/src/output/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/plugins')
-rw-r--r--src/output/plugins/httpd/HttpdInternal.hxx3
-rw-r--r--src/output/plugins/httpd/HttpdOutputPlugin.cxx14
2 files changed, 7 insertions, 10 deletions
diff --git a/src/output/plugins/httpd/HttpdInternal.hxx b/src/output/plugins/httpd/HttpdInternal.hxx
index bec26711b..a402b4a81 100644
--- a/src/output/plugins/httpd/HttpdInternal.hxx
+++ b/src/output/plugins/httpd/HttpdInternal.hxx
@@ -40,7 +40,6 @@
#include <list>
struct ConfigBlock;
-class Error;
class EventLoop;
class ServerSocket;
class HttpdClient;
@@ -246,7 +245,7 @@ public:
void SendTag(const Tag &tag);
- size_t Play(const void *chunk, size_t size, Error &error);
+ size_t Play(const void *chunk, size_t size);
void CancelAllClients();
diff --git a/src/output/plugins/httpd/HttpdOutputPlugin.cxx b/src/output/plugins/httpd/HttpdOutputPlugin.cxx
index a90a88ac1..cf438e555 100644
--- a/src/output/plugins/httpd/HttpdOutputPlugin.cxx
+++ b/src/output/plugins/httpd/HttpdOutputPlugin.cxx
@@ -33,7 +33,6 @@
#include "IOThread.hxx"
#include "event/Call.hxx"
#include "util/RuntimeError.hxx"
-#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "util/DeleteDisposer.hxx"
#include "Log.hxx"
@@ -419,7 +418,7 @@ HttpdOutput::EncodeAndPlay(const void *chunk, size_t size)
}
inline size_t
-HttpdOutput::Play(const void *chunk, size_t size, Error &)
+HttpdOutput::Play(const void *chunk, size_t size)
{
if (LockHasClients())
EncodeAndPlay(chunk, size);
@@ -433,11 +432,11 @@ HttpdOutput::Play(const void *chunk, size_t size, Error &)
static size_t
httpd_output_play(AudioOutput *ao, const void *chunk, size_t size,
- Error &error)
+ Error &)
{
HttpdOutput *httpd = HttpdOutput::Cast(ao);
- return httpd->Play(chunk, size, error);
+ return httpd->Play(chunk, size);
}
static bool
@@ -447,11 +446,10 @@ httpd_output_pause(AudioOutput *ao)
if (httpd->LockHasClients()) {
static const char silence[1020] = { 0 };
- return httpd_output_play(ao, silence, sizeof(silence),
- IgnoreError()) > 0;
- } else {
- return true;
+ httpd->Play(silence, sizeof(silence));
}
+
+ return true;
}
inline void