diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-30 22:57:02 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-30 22:57:02 +0000 |
commit | 634028385d06bdf73bc4ac64739a75eb39dc8b0b (patch) | |
tree | 212654c2310a14285f7339e8b700a6819867e627 /apps | |
parent | 9c00d1a643942c1729f01fb5609d7b00204b54bd (diff) |
audio_reset_buffer: check audiobuffer size not only in DEBUG builds
(DEBUG builds do not work/build anyway)
Also use a shorter message
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27951 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/playback.c b/apps/playback.c index 4c55c857bc..420ccba4b2 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1862,12 +1862,8 @@ static void audio_reset_buffer(void) /* Subtract whatever the pcm buffer says it used plus the guard buffer */ const size_t pcmbuf_size = pcmbuf_init(filebuf + filebuflen) +GUARD_BUFSIZE; - -#ifdef DEBUG if(pcmbuf_size > filebuflen) - panicf("Not enough memory for pcmbuf_init() : %d > %d", - (int)pcmbuf_size, (int)filebuflen); -#endif + panicf("%s(): EOM (%d > %d)", __func__, (int)pcmbuf_size, (int)filebuflen); filebuflen -= pcmbuf_size; |