forked from len0rd/rockbox
Fix audio_get_buffer() implementation on hwcodec, to be similar to the swcodec one. Should make hwcodec bood again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30737 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aed39dbbaf
commit
889690c0f6
2 changed files with 11 additions and 5 deletions
|
|
@ -628,7 +628,11 @@ buflib_alloc_maximum(struct buflib_context* ctx, const char* name, size_t *size,
|
|||
{
|
||||
/* limit name to 16 since that's what buflib_available() accounts for it */
|
||||
char buf[16];
|
||||
|
||||
*size = buflib_available(ctx);
|
||||
if (*size <= 0) /* OOM */
|
||||
return -1;
|
||||
|
||||
strlcpy(buf, name, sizeof(buf));
|
||||
|
||||
return buflib_alloc_ex(ctx, *size, buf, ops);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue