forked from len0rd/rockbox
Fix file descriptor leak that would cause a hard lockup every 7 files
played. A few other cosmetic changes. please, please no red build =) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9865 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
224b0bf1ff
commit
47efba8bbf
5 changed files with 111 additions and 84 deletions
|
@ -62,6 +62,7 @@
|
|||
|
||||
extern struct plugin_api * rb;
|
||||
|
||||
int printf(const char *fmt, ...);
|
||||
|
||||
int chVol[16] IBSS_ATTR; /* Channel volume */
|
||||
int chPanLeft[16] IBSS_ATTR; /* Channel panning */
|
||||
|
@ -156,6 +157,15 @@ void *alloc(int size)
|
|||
|
||||
if (size + 4 > totalSize)
|
||||
{
|
||||
printf("\nMALLOC BARF");
|
||||
printf("\nMALLOC BARF");
|
||||
printf("\nMALLOC BARF");
|
||||
printf("\nMALLOC BARF");
|
||||
printf("\nMALLOC BARF");
|
||||
printf("\nMALLOC BARF");
|
||||
printf("\nMALLOC BARF");
|
||||
/* We've made our point. */
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -229,7 +239,7 @@ int eof(int fd)
|
|||
// Here is a hacked up printf command to get the output from the game.
|
||||
int printf(const char *fmt, ...)
|
||||
{
|
||||
static int p_xtpt;
|
||||
static int p_xtpt = 0;
|
||||
char p_buf[50];
|
||||
bool ok;
|
||||
va_list ap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue