Sync test_codec to r29595.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29596 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-03-16 05:59:46 +00:00
parent 56dd75d204
commit a4098e6174

View file

@ -485,13 +485,6 @@ static void advance_buffer(size_t amount)
} }
/* Advance file buffer to a pointer location inside file buffer. */
static void advance_buffer_loc(void *ptr)
{
ci.curpos = ptr - (audiobuf - offset);
}
/* Seek file buffer to position <newpos> beginning of file. */ /* Seek file buffer to position <newpos> beginning of file. */
static bool seek_buffer(size_t newpos) static bool seek_buffer(size_t newpos)
{ {
@ -565,7 +558,6 @@ static void init_ci(void)
ci.read_filebuf = read_filebuf; ci.read_filebuf = read_filebuf;
ci.request_buffer = request_buffer; ci.request_buffer = request_buffer;
ci.advance_buffer = advance_buffer; ci.advance_buffer = advance_buffer;
ci.advance_buffer_loc = advance_buffer_loc;
ci.seek_buffer = seek_buffer; ci.seek_buffer = seek_buffer;
ci.seek_complete = seek_complete; ci.seek_complete = seek_complete;
ci.request_next_track = request_next_track; ci.request_next_track = request_next_track;