HTTP: Support much larger metadata blocks
Support icy metaint data blocks up to 4KiB in size Signed-off-by: Christopher Snowhill <kode54@gmail.com>main
parent
7640c869de
commit
90eb2ded1d
|
@ -15,7 +15,7 @@
|
|||
#define BUFFER_SIZE 0x10000
|
||||
#define BUFFER_MASK 0xffff
|
||||
|
||||
#define MAX_METADATA 1024
|
||||
#define MAX_METADATA 4096
|
||||
|
||||
#define TIMEOUT 10 // in seconds
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ static int http_parse_shoutcast_meta(HTTPSource *fp, const char *meta, size_t si
|
|||
DLog(@"%s", meta);
|
||||
const char *e = meta + size;
|
||||
const char strtitle[] = "StreamTitle='";
|
||||
char title[256] = "";
|
||||
char title[4096] = "";
|
||||
while(meta < e) {
|
||||
if(!memcmp(meta, strtitle, sizeof(strtitle) - 1)) {
|
||||
meta += sizeof(strtitle) - 1;
|
||||
|
|
Loading…
Reference in New Issue