aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtsp_client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-08-31 20:19:36 +0200
committerMax Kellermann <max@duempel.org>2011-08-31 20:19:36 +0200
commit140162191388063e41e33b53d4533e07529df870 (patch)
tree0d5aa042c35f82aa9a0fb9b9ec67b14059d336d9 /src/rtsp_client.c
parent3c034b0a0c057f8be0ee1a8ad956b3e6eed0463a (diff)
downloadmpd-140162191388063e41e33b53d4533e07529df870.tar.gz
mpd-140162191388063e41e33b53d4533e07529df870.tar.xz
mpd-140162191388063e41e33b53d4533e07529df870.zip
output/raop: remove Audio-Jack-Status check
The value of this is not used, the code is commented out - let's get rid of it.
Diffstat (limited to 'src/rtsp_client.c')
-rw-r--r--src/rtsp_client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rtsp_client.c b/src/rtsp_client.c
index d05efa619..a808ef207 100644
--- a/src/rtsp_client.c
+++ b/src/rtsp_client.c
@@ -681,11 +681,15 @@ rtspcl_setup(struct rtspcl_data *rtspcld, struct key_data **kd,
rval = true;
erexit:
g_free(buf);
- if (!rval) {
+
+ if (!rval || kd == NULL) {
free_kd(rkd);
rkd = NULL;
}
- *kd = rkd;
+
+ if (kd != NULL)
+ *kd = rkd;
+
return rval;
}