diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-11-05 21:46:17 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-11-05 21:46:17 +0000 |
commit | eac794de77ef7693110d8217195ca8801037d8cd (patch) | |
tree | c66830e6c7c019341bfe80a157c7f22f7da6b9af /apps | |
parent | e96fe7f256961aa3d19bdce733b82026e53e15b7 (diff) | |
download | rockbox-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.c | 4 |
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; } |