debug code for stream name/title
git-svn-id: https://svn.musicpd.org/mpd/trunk@1415 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
d217505dc6
commit
d5f7a7745a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue