diff options
author | Sean Bartell <wingedtachikoma@gmail.com> | 2011-08-12 01:27:13 -0400 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-04-28 09:07:40 +0200 |
commit | fe3d58004cf28fb98dd29159187d256aaf5d0781 (patch) | |
tree | 0bab6252f0f282675878c15183c5c660b52dc233 /lib/rbcodec/test | |
parent | b794cbbdca28989ca357cec44e4d2df5e9fb67bd (diff) | |
download | rockbox-fe3d58004cf28fb98dd29159187d256aaf5d0781.tar.gz rockbox-fe3d58004cf28fb98dd29159187d256aaf5d0781.zip |
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>
Diffstat (limited to 'lib/rbcodec/test')
-rw-r--r-- | lib/rbcodec/test/warble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c index e3d9456f4d..8dc27da9eb 100644 --- a/lib/rbcodec/test/warble.c +++ b/lib/rbcodec/test/warble.c @@ -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); |