summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-11-05 21:46:17 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-11-05 21:46:17 +0000
commiteac794de77ef7693110d8217195ca8801037d8cd (patch)
treec66830e6c7c019341bfe80a157c7f22f7da6b9af /apps
parente96fe7f256961aa3d19bdce733b82026e53e15b7 (diff)
downloadrockbox-eac794de77ef7693110d8217195ca8801037d8cd.tar.gz
rockbox-eac794de77ef7693110d8217195ca8801037d8cd.zip
Types other than packet audio still need to yield while buffering.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15489 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/buffering.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 349dc9bbb9..da18cd5f4f 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -655,9 +655,11 @@ static bool buffer_handle(int handle_id)
h->available += rc;
h->filerem -= rc;
+ yield();
+
/* If this is a large file, see if we need to break or give the codec
* more time */
- if (h->type==TYPE_PACKET_AUDIO && yield_codec())
+ if (h->type == TYPE_PACKET_AUDIO && yield_codec())
break;
}