diff options
author | Max Kellermann <max@duempel.org> | 2009-02-09 16:35:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-09 16:35:43 +0100 |
commit | f3076436fbbea7c9bdfe16f3dd0ec03ace5f679a (patch) | |
tree | 79c349bb4daba6528a6a41dcf451fac19277f2df /src/output | |
parent | f2c81399b7b53e7151cde7d6c3e936f4ee6af194 (diff) | |
download | mpd-f3076436fbbea7c9bdfe16f3dd0ec03ace5f679a.tar.gz mpd-f3076436fbbea7c9bdfe16f3dd0ec03ace5f679a.tar.xz mpd-f3076436fbbea7c9bdfe16f3dd0ec03ace5f679a.zip |
shout: removed shout_data.shout_error
That variable is set in handle_shout_error(), but is never read.
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/shout_plugin.c | 3 | ||||
-rw-r--r-- | src/output/shout_plugin.h | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/output/shout_plugin.c b/src/output/shout_plugin.c index 9edaf63af..c8a39ed62 100644 --- a/src/output/shout_plugin.c +++ b/src/output/shout_plugin.c @@ -307,14 +307,12 @@ static int handle_shout_error(struct shout_data *sd, int err) shout_get_host(sd->shout_conn), shout_get_port(sd->shout_conn), shout_get_error(sd->shout_conn)); - sd->shout_error = 1; return -1; default: g_warning("shout: connection to %s:%i error: %s\n", shout_get_host(sd->shout_conn), shout_get_port(sd->shout_conn), shout_get_error(sd->shout_conn)); - sd->shout_error = 1; return -1; } @@ -460,7 +458,6 @@ static int open_shout_conn(void *data) write_page(sd); - sd->shout_error = 0; sd->opened = true; sd->tag_to_send = 1; sd->conn_attempts = 0; diff --git a/src/output/shout_plugin.h b/src/output/shout_plugin.h index 46514fdc3..ee544152a 100644 --- a/src/output/shout_plugin.h +++ b/src/output/shout_plugin.h @@ -61,7 +61,6 @@ struct shout_data { shout_t *shout_conn; shout_metadata_t *shout_meta; - int shout_error; const struct shout_encoder_plugin *encoder; void *encoder_data; |