From eac794de77ef7693110d8217195ca8801037d8cd Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Mon, 5 Nov 2007 21:46:17 +0000 Subject: 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 --- apps/buffering.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/buffering.c') 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; } -- cgit v1.2.3