HTTP: Support much larger metadata blocks
Support icy metaint data blocks up to 4KiB in size Signed-off-by: Christopher Snowhill <kode54@gmail.com>xcode15
parent
836147b94b
commit
1115e9651d
|
@ -15,7 +15,7 @@
|
||||||
#define BUFFER_SIZE 0x10000
|
#define BUFFER_SIZE 0x10000
|
||||||
#define BUFFER_MASK 0xffff
|
#define BUFFER_MASK 0xffff
|
||||||
|
|
||||||
#define MAX_METADATA 1024
|
#define MAX_METADATA 4096
|
||||||
|
|
||||||
#define TIMEOUT 10 // in seconds
|
#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);
|
DLog(@"%s", meta);
|
||||||
const char *e = meta + size;
|
const char *e = meta + size;
|
||||||
const char strtitle[] = "StreamTitle='";
|
const char strtitle[] = "StreamTitle='";
|
||||||
char title[256] = "";
|
char title[4096] = "";
|
||||||
while(meta < e) {
|
while(meta < e) {
|
||||||
if(!memcmp(meta, strtitle, sizeof(strtitle) - 1)) {
|
if(!memcmp(meta, strtitle, sizeof(strtitle) - 1)) {
|
||||||
meta += sizeof(strtitle) - 1;
|
meta += sizeof(strtitle) - 1;
|
||||||
|
|
Loading…
Reference in New Issue