mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
OOM on playlist_resume
Discovered on ClipZip but applicable to other LOW MEM targets Back off voice buffer on playlist_resume Change-Id: Ia316c4b7fc1bcb089d3069a13dd7c193edf2ba1e
This commit is contained in:
parent
de53965e3f
commit
80be135d0d
1 changed files with 2 additions and 0 deletions
|
|
@ -2122,6 +2122,7 @@ int playlist_resume(void)
|
||||||
* default buflib buffers can be moved around which must be avoided */
|
* default buflib buffers can be moved around which must be avoided */
|
||||||
static struct buflib_callbacks dummy_ops;
|
static struct buflib_callbacks dummy_ops;
|
||||||
/* use mp3 buffer for maximum load speed */
|
/* use mp3 buffer for maximum load speed */
|
||||||
|
talk_buffer_set_policy(TALK_BUFFER_LOOSE); /* back off voice buffer */
|
||||||
handle = core_alloc_maximum("temp", &buflen, &dummy_ops);
|
handle = core_alloc_maximum("temp", &buflen, &dummy_ops);
|
||||||
if (handle < 0)
|
if (handle < 0)
|
||||||
panicf("%s(): OOM", __func__);
|
panicf("%s(): OOM", __func__);
|
||||||
|
|
@ -2506,6 +2507,7 @@ int playlist_resume(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
talk_buffer_set_policy(TALK_BUFFER_DEFAULT);
|
||||||
core_free(handle);
|
core_free(handle);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue