forked from len0rd/rockbox
* Only call bufgetcodec once
* Fix/Improve some queue logf messages * Complete buffering_init git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15325 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0652663367
commit
d08131a117
2 changed files with 11 additions and 6 deletions
|
@ -1895,6 +1895,7 @@ static void codec_thread(void)
|
|||
struct queue_event ev;
|
||||
int status;
|
||||
size_t wrap;
|
||||
void *codecptr;
|
||||
|
||||
while (1) {
|
||||
status = 0;
|
||||
|
@ -1950,9 +1951,10 @@ static void codec_thread(void)
|
|||
#endif
|
||||
set_current_codec(CODEC_IDX_AUDIO);
|
||||
ci.stop_codec = false;
|
||||
wrap = (size_t)&filebuf[filebuflen] - (size_t)bufgetcodec(CUR_TI);
|
||||
status = codec_load_ram(bufgetcodec(CUR_TI), CUR_TI->codecsize,
|
||||
&filebuf[0], wrap, &ci);
|
||||
codecptr = bufgetcodec(CUR_TI);
|
||||
wrap = (size_t)&filebuf[filebuflen] - (size_t)codecptr;
|
||||
status = codec_load_ram(codecptr, CUR_TI->codecsize,
|
||||
&filebuf[0], wrap, &ci);
|
||||
#ifdef PLAYBACK_VOICE
|
||||
semaphore_release(&sem_codecthread);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue