1
0
Fork 0
forked from len0rd/rockbox

rbcodec refactoring: get_audio_base_data_type

This function has been changed to rbcodec_format_is_atomic, which
doesn't require an enum from the kernel.

Change-Id: I1d537605087fe130a9b545509d7b8a340806dbf2
Reviewed-on: http://gerrit.rockbox.org/141
Reviewed-by: Nils Wallménius <nils@rockbox.org>
Tested-by: Nils Wallménius <nils@rockbox.org>
This commit is contained in:
Sean Bartell 2011-08-12 01:27:13 -04:00 committed by Nils Wallménius
parent b794cbbdca
commit fe3d58004c
4 changed files with 10 additions and 15 deletions

View file

@ -475,7 +475,7 @@ static size_t ci_read_filebuf(void *ptr, size_t size)
static void *ci_request_buffer(size_t *realsize, size_t reqsize)
{
free(input_buffer);
if (get_audio_base_data_type(ci.id3->codectype) == TYPE_PACKET_AUDIO)
if (!rbcodec_format_is_atomic(ci.id3->codectype))
reqsize = MIN(reqsize, 32 * 1024);
input_buffer = malloc(reqsize);
*realsize = read(input_fd, input_buffer, reqsize);