aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_http.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-09 16:32:40 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-09 16:32:40 +0000
commitd5f7a7745a188375c5accbbd2eb82c2776cc2a6e (patch)
tree7d1c7aa2b82af39c33095e3b0b63c823a93e7f71 /src/inputStream_http.c
parentd217505dc63a1789ace5699699f056368fb3ecc3 (diff)
downloadmpd-d5f7a7745a188375c5accbbd2eb82c2776cc2a6e.tar.gz
mpd-d5f7a7745a188375c5accbbd2eb82c2776cc2a6e.tar.xz
mpd-d5f7a7745a188375c5accbbd2eb82c2776cc2a6e.zip
debug code for stream name/title
git-svn-id: https://svn.musicpd.org/mpd/trunk@1415 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputStream_http.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index 1ac5f3bfb..51e562c01 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -378,6 +378,8 @@ static int getHTTPHello(InputStream * inStream) {
while(*(incr+cur) == ' ') incr++;
inStream->metaName = strdup(cur+incr);
*temp = '\r';
+ DEBUG("inputStream_http: metaName: %s\n",
+ inStream->metaName);
}
else if(0 == strncmp(cur, "\r\nx-audiocast-name:", 19)) {
int incr = 19;
@@ -388,6 +390,8 @@ static int getHTTPHello(InputStream * inStream) {
while(*(incr+cur) == ' ') incr++;
inStream->metaName = strdup(cur+incr);
*temp = '\r';
+ DEBUG("inputStream_http: metaName: %s\n",
+ inStream->metaName);
}
else if(0 == strncmp(cur, "\r\nContent-Type:", 15)) {
int incr = 15;
@@ -466,6 +470,8 @@ static void parseIcyMetadata(InputStream * inStream, char * metadata,
s[strlen(s)-1] = '\0';
}
inStream->metaTitle = strdup(s+cur);
+ DEBUG("inputStream_http: metaTitle: %s\n",
+ inStream->metaTitle);
}
s = strtok_r(NULL, ";", &r);
}