put icyName debug info
git-svn-id: https://svn.musicpd.org/mpd/trunk@1151 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
e89c9769f9
commit
8c261f1885
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user