aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-17 19:16:18 +0100
committerMax Kellermann <max@duempel.org>2015-08-06 09:51:03 +0200
commit59e4d7f0f5daaa120c6eccededd8aa687c56d739 (patch)
tree1a0d51b47e731fad9253fbb2d3be7ba7254d5e17 /src/output/plugins
parent464744839931b890c440ab0a053cfe4546faf47c (diff)
downloadmpd-59e4d7f0f5daaa120c6eccededd8aa687c56d739.tar.gz
mpd-59e4d7f0f5daaa120c6eccededd8aa687c56d739.tar.xz
mpd-59e4d7f0f5daaa120c6eccededd8aa687c56d739.zip
output/fifo: convert struct to class
Diffstat (limited to 'src/output/plugins')
-rw-r--r--src/output/plugins/FifoOutputPlugin.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/output/plugins/FifoOutputPlugin.cxx b/src/output/plugins/FifoOutputPlugin.cxx
index 5956b708f..d425ce85d 100644
--- a/src/output/plugins/FifoOutputPlugin.cxx
+++ b/src/output/plugins/FifoOutputPlugin.cxx
@@ -37,7 +37,9 @@
#define FIFO_BUFFER_SIZE 65536 /* pipe capacity on Linux >= 2.6.11 */
-struct FifoOutput {
+class FifoOutput {
+ friend struct AudioOutputWrapper<FifoOutput>;
+
AudioOutput base;
AllocatedPath path;
@@ -48,6 +50,7 @@ struct FifoOutput {
bool created;
Timer *timer;
+public:
FifoOutput()
:base(fifo_output_plugin),
path(AllocatedPath::Null()), input(-1), output(-1),