Commit d5f7a774 authored by Warren Dukes's avatar Warren Dukes

debug code for stream name/title

git-svn-id: https://svn.musicpd.org/mpd/trunk@1415 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent d217505d
...@@ -378,6 +378,8 @@ static int getHTTPHello(InputStream * inStream) { ...@@ -378,6 +378,8 @@ static int getHTTPHello(InputStream * inStream) {
while(*(incr+cur) == ' ') incr++; while(*(incr+cur) == ' ') incr++;
inStream->metaName = strdup(cur+incr); inStream->metaName = strdup(cur+incr);
*temp = '\r'; *temp = '\r';
DEBUG("inputStream_http: metaName: %s\n",
inStream->metaName);
} }
else if(0 == strncmp(cur, "\r\nx-audiocast-name:", 19)) { else if(0 == strncmp(cur, "\r\nx-audiocast-name:", 19)) {
int incr = 19; int incr = 19;
...@@ -388,6 +390,8 @@ static int getHTTPHello(InputStream * inStream) { ...@@ -388,6 +390,8 @@ static int getHTTPHello(InputStream * inStream) {
while(*(incr+cur) == ' ') incr++; while(*(incr+cur) == ' ') incr++;
inStream->metaName = strdup(cur+incr); inStream->metaName = strdup(cur+incr);
*temp = '\r'; *temp = '\r';
DEBUG("inputStream_http: metaName: %s\n",
inStream->metaName);
} }
else if(0 == strncmp(cur, "\r\nContent-Type:", 15)) { else if(0 == strncmp(cur, "\r\nContent-Type:", 15)) {
int incr = 15; int incr = 15;
...@@ -466,6 +470,8 @@ static void parseIcyMetadata(InputStream * inStream, char * metadata, ...@@ -466,6 +470,8 @@ static void parseIcyMetadata(InputStream * inStream, char * metadata,
s[strlen(s)-1] = '\0'; s[strlen(s)-1] = '\0';
} }
inStream->metaTitle = strdup(s+cur); inStream->metaTitle = strdup(s+cur);
DEBUG("inputStream_http: metaTitle: %s\n",
inStream->metaTitle);
} }
s = strtok_r(NULL, ";", &r); s = strtok_r(NULL, ";", &r);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment