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
Christopher Snowhill 2023-05-31 22:33:15 -07:00
parent 7640c869de
commit 90eb2ded1d
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;