aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-02 00:08:06 +0200
committerMax Kellermann <max@duempel.org>2012-10-02 00:18:04 +0200
commit674b4ab64735dac3b8113e09db4cdb9072ddacb7 (patch)
tree72cb7ace7ed681960be06134559afe6fd6b42872 /src
parentfe8fc1081a9b9f5a086ee3f88230542c968ccc49 (diff)
downloadmpd-674b4ab64735dac3b8113e09db4cdb9072ddacb7.tar.gz
mpd-674b4ab64735dac3b8113e09db4cdb9072ddacb7.tar.xz
mpd-674b4ab64735dac3b8113e09db4cdb9072ddacb7.zip
output/shout: eliminate struct shout_buffer
Move the raw buffer to struct shout_data.
Diffstat (limited to 'src')
-rw-r--r--src/output/shout_output_plugin.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/output/shout_output_plugin.c b/src/output/shout_output_plugin.c
index 1b5922e98..63f1001ba 100644
--- a/src/output/shout_output_plugin.c
+++ b/src/output/shout_output_plugin.c
@@ -36,10 +36,6 @@
#define DEFAULT_CONN_TIMEOUT 2
-struct shout_buffer {
- unsigned char data[32768];
-};
-
struct shout_data {
struct audio_output base;
@@ -53,7 +49,7 @@ struct shout_data {
int timeout;
- struct shout_buffer buf;
+ uint8_t buffer[32768];
};
static int shout_init_count;
@@ -347,11 +343,11 @@ write_page(struct shout_data *sd, GError **error)
assert(sd->encoder != NULL);
size_t nbytes = encoder_read(sd->encoder,
- sd->buf.data, sizeof(sd->buf.data));
+ sd->buffer, sizeof(sd->buffer));
if (nbytes == 0)
return true;
- int err = shout_send(sd->shout_conn, sd->buf.data, nbytes);
+ int err = shout_send(sd->shout_conn, sd->buffer, nbytes);
if (!handle_shout_error(sd, err, error))
return false;