diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-12 18:16:35 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-12 18:16:35 +0000 |
commit | e0037adfaed8f8d17a7786f23772de4fd0b36110 (patch) | |
tree | 1b4c009bf8bb55133d85a10a6832c5f33e78a2e4 /apps | |
parent | b56f42494b6ca785c36fc48ae5e662adaca21902 (diff) |
Codec loader fixed. Now switching between different codecs should work
better.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6694 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 10 | ||||
-rw-r--r-- | apps/plugin.c | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/apps/playback.c b/apps/playback.c index 391f5e9537..5454fd0e31 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1145,10 +1145,7 @@ bool codec_request_next_track_callback(void) track_ridx = 0; if (track_ridx == track_widx && tracks[track_ridx].filerem == 0) { - if (ci.reload_codec) { - } else { - logf("No more tracks"); - } + logf("No more tracks"); new_track = 0; return false; } @@ -1256,7 +1253,7 @@ void codec_thread(void) ci.stop_codec = false; wrap = (int)&codecbuf[codecbuflen] - (int)cur_ti->codecbuf; status = codec_load_ram(cur_ti->codecbuf, codecsize, - &ci, &codecbuf[0], codecbuflen); + &ci, &codecbuf[0], wrap); break ; #ifndef SIMULATOR @@ -1272,7 +1269,8 @@ void codec_thread(void) case CODEC_LOAD: if (status != PLUGIN_OK) { logf("Codec failure"); - // playing = false; + splash(HZ*2, true, "Codec failure"); + playing = false; } else { logf("Codec finished"); } diff --git a/apps/plugin.c b/apps/plugin.c index a97f7e4754..62bc4cfde7 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -347,7 +347,7 @@ int codec_load_ram(char* pluginptr, size_t size, void *parameter, void* ptr2, si size -= copy_n; if (size > 0) { - memcpy(ptr2, &pluginptr[copy_n], size); + memcpy(&pluginbuf[copy_n], ptr2, size); } } |