Fixed a hang with backward skipping.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7269 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2005-07-30 20:46:38 +00:00
parent 1476fecf72
commit 637887838f

View file

@ -282,7 +282,7 @@ long codec_filebuf_callback(void *ptr, long size)
while (copy_n > cur_ti->available) {
yield();
if (ci.stop_codec)
if (ci.stop_codec || ci.reload_codec)
return 0;
}
@ -321,7 +321,7 @@ void* codec_request_buffer_callback(long *realsize, long reqsize)
while ((int)*realsize > cur_ti->available) {
yield();
if (ci.stop_codec) {
if (ci.stop_codec || ci.reload_codec) {
*realsize = 0;
return NULL;
}
@ -373,7 +373,7 @@ static bool rebuffer_and_seek(int newpos)
while (cur_ti->available == 0 && cur_ti->filerem > 0) {
yield();
if (ci.stop_codec)
if (ci.stop_codec || ci.reload_codec)
return false;
}