aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-08-30 21:29:19 +0200
committerMax Kellermann <max@duempel.org>2011-08-30 21:29:19 +0200
commitf34124a50b4b8c753eea20005aab75605b15e870 (patch)
tree6ec6aa868b2b62414a00dd9239b3241c0280e06a
parent74a39c715b8c13b937965695624436aed45a7a4b (diff)
downloadmpd-f34124a50b4b8c753eea20005aab75605b15e870.tar.gz
mpd-f34124a50b4b8c753eea20005aab75605b15e870.tar.xz
mpd-f34124a50b4b8c753eea20005aab75605b15e870.zip
rtsp_client: move "new_kd" out of the loop
This must persist iterations.
Diffstat (limited to '')
-rw-r--r--src/rtsp_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtsp_client.c b/src/rtsp_client.c
index d7db0501d..d85a7632d 100644
--- a/src/rtsp_client.c
+++ b/src/rtsp_client.c
@@ -437,9 +437,9 @@ exec_request(struct rtspcl_data *rtspcld, const char *cmd,
return false;
}
+ struct key_data *new_kd = NULL;
i = 0;
while (read_line(rtspcld->fd, line, sizeof(line), timeout, 0) > 0) {
- struct key_data *new_kd = NULL;
timeout = 1000; // once it started, it shouldn't take a long time
if (i && line[0] == ' ') {
for (j = 0; j < strlen(line); j++) if (line[j] != ' ') break;