diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-09 16:32:40 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-09 16:32:40 +0000 |
commit | d5f7a7745a188375c5accbbd2eb82c2776cc2a6e (patch) | |
tree | 7d1c7aa2b82af39c33095e3b0b63c823a93e7f71 | |
parent | d217505dc63a1789ace5699699f056368fb3ecc3 (diff) | |
download | mpd-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
-rw-r--r-- | src/inputStream_http.c | 6 |
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); } |