Commit 8c261f18 authored by Warren Dukes's avatar Warren Dukes

put icyName debug info

git-svn-id: https://svn.musicpd.org/mpd/trunk@1151 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent e89c9769
......@@ -19,6 +19,7 @@
#include "inputStream_http.h"
#include "utils.h"
#include "log.h"
#include <stdio.h>
#include <sys/types.h>
......@@ -376,6 +377,7 @@ static int getHTTPHello(InputStream * inStream) {
if(data->icyName) free(data->icyName);
data->icyName = strdup(cur+11);
*temp = '\r';
DEBUG("stream icy-name: %s\n", data->icyName);
}
else if(0 == strncmp(cur, "\r\nx-audiocast-name:", 19)) {
char * temp = strstr(cur+19,"\r\n");
......@@ -384,6 +386,7 @@ static int getHTTPHello(InputStream * inStream) {
if(data->icyName) free(data->icyName);
data->icyName = strdup(cur+19);
*temp = '\r';
DEBUG("stream audiocast-name: %s\n", data->icyName);
}
else if(0 == strncmp(cur, "\r\nContent-Type:", 15)) {
char * temp = strstr(cur+15,"\r\n");
......
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