diff options
author | Max Kellermann <max@duempel.org> | 2013-08-03 21:00:50 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-03 21:37:56 +0200 |
commit | d1e7b4e38136f9342aad76c685a13adf0e69f869 (patch) | |
tree | 49643b937ddfe735511b566a71398da5a945d7aa /src/output/HttpdOutputPlugin.cxx | |
parent | 67f591a9ce60651da41afc499bd9a22e25314e35 (diff) | |
download | mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.gz mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.xz mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.zip |
audio_format: convert to C++
Diffstat (limited to '')
-rw-r--r-- | src/output/HttpdOutputPlugin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output/HttpdOutputPlugin.cxx b/src/output/HttpdOutputPlugin.cxx index 36bd1aee1..462dd3429 100644 --- a/src/output/HttpdOutputPlugin.cxx +++ b/src/output/HttpdOutputPlugin.cxx @@ -291,7 +291,7 @@ httpd_output_disable(struct audio_output *ao) } inline bool -HttpdOutput::OpenEncoder(struct audio_format *audio_format, GError **error) +HttpdOutput::OpenEncoder(AudioFormat &audio_format, GError **error) { if (!encoder_open(encoder, audio_format, error)) return false; @@ -307,7 +307,7 @@ HttpdOutput::OpenEncoder(struct audio_format *audio_format, GError **error) } inline bool -HttpdOutput::Open(struct audio_format *audio_format, GError **error_r) +HttpdOutput::Open(AudioFormat &audio_format, GError **error_r) { assert(!open); assert(clients.empty()); @@ -320,7 +320,7 @@ HttpdOutput::Open(struct audio_format *audio_format, GError **error_r) /* initialize other attributes */ clients_cnt = 0; - timer = new Timer(*audio_format); + timer = new Timer(audio_format); open = true; @@ -328,7 +328,7 @@ HttpdOutput::Open(struct audio_format *audio_format, GError **error_r) } static bool -httpd_output_open(struct audio_output *ao, struct audio_format *audio_format, +httpd_output_open(struct audio_output *ao, AudioFormat &audio_format, GError **error) { HttpdOutput *httpd = Cast(ao); |