aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-08-24 01:27:14 +0200
committerMax Kellermann <max@duempel.org>2011-08-24 01:47:18 +0200
commit03b1fad4d4b9de2ba4f74a927bab4d32b66ea377 (patch)
tree42856cfbb09cb3e9d74cc1d4b8e00aab77207db5 /src/output
parent72eb4c534fca533c03e5b2ebea142a0ed1540f89 (diff)
downloadmpd-03b1fad4d4b9de2ba4f74a927bab4d32b66ea377.tar.gz
mpd-03b1fad4d4b9de2ba4f74a927bab4d32b66ea377.tar.xz
mpd-03b1fad4d4b9de2ba4f74a927bab4d32b66ea377.zip
output/raop: remove unused local variables
Diffstat (limited to 'src/output')
-rw-r--r--src/output/raop_output_plugin.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/output/raop_output_plugin.c b/src/output/raop_output_plugin.c
index 97ec9b9b8..a30bc795f 100644
--- a/src/output/raop_output_plugin.c
+++ b/src/output/raop_output_plugin.c
@@ -1081,12 +1081,11 @@ send_audio_data(int fd)
{
int i = 0;
struct timeval current_time, tout, rtp_time;
- int diff, olddiff;
struct raop_data *rd = raop_session->raop_list;
get_time_for_rtp(&raop_session->play_state, &rtp_time);
gettimeofday(&current_time, NULL);
- olddiff = diff = difference(&current_time, &rtp_time);
+ int diff = difference(&current_time, &rtp_time);
while (diff < -10000) {
tout.tv_sec = 0;
@@ -1322,7 +1321,6 @@ raop_output_play(void *data, const void *chunk, size_t size,
struct raop_data *rd = data;
struct timeval tout = {.tv_sec = 0, .tv_usec = 0};
size_t rval = 0, orig_size = size;
- bool first = false;
rd->paused = false;
if (!rd->is_master) {
@@ -1338,7 +1336,7 @@ raop_output_play(void *data, const void *chunk, size_t size,
// looped over, need new reference point to calculate correct times
raop_session->play_state.playing = false;
}
- first = !raop_session->play_state.playing;
+
while (raop_session->bufferSize + size >= RAOP_BUFFER_SIZE) {
// ntp header
unsigned char header[] = {