X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=flac_afh.c;h=e2d5380240240ddfaf3ce2b989ab0847f2e6e4fb;hp=51c3c314bf9e265110e82eabae9e94918e1bc7e3;hb=66b97974ebba5c6ea967b713f84f62a1b72da8d2;hpb=63b46b233e069604bd66950ff7c4c827f3b2f7a6 diff --git a/flac_afh.c b/flac_afh.c index 51c3c314..e2d53802 100644 --- a/flac_afh.c +++ b/flac_afh.c @@ -391,6 +391,7 @@ static int flac_afh_read_chunks(struct private_flac_afh_data *pfad) break; } afhi->chunks_total = c; + set_max_chunk_size(afhi); ret = 1; free_decoder: FLAC__stream_decoder_finish(decoder); @@ -468,7 +469,7 @@ static int flac_write_chain(FLAC__Metadata_Chain *chain, if (!ok) { FLAC__Metadata_ChainStatus st; st = FLAC__metadata_chain_status(chain); - PARA_ERROR_LOG("chain status: %d\n", st); + PARA_ERROR_LOG("chain status: %u\n", st); if (st == FLAC__METADATA_CHAIN_STATUS_READ_ERROR) PARA_ERROR_LOG("read error\n"); return -E_FLAC_WRITE_CHAIN; @@ -515,7 +516,7 @@ free_pfad: return ret; } -static const char* flac_suffixes[] = {"flac", NULL}; +static const char * const flac_suffixes[] = {"flac", NULL}; /** * The init function of the flac audio format handler.