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) | |
download | rockbox-634028385d06bdf73bc4ac64739a75eb39dc8b0b.tar.gz rockbox-634028385d06bdf73bc4ac64739a75eb39dc8b0b.zip |
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) | |||
1862 | 1862 | ||
1863 | /* Subtract whatever the pcm buffer says it used plus the guard buffer */ | 1863 | /* Subtract whatever the pcm buffer says it used plus the guard buffer */ |
1864 | const size_t pcmbuf_size = pcmbuf_init(filebuf + filebuflen) +GUARD_BUFSIZE; | 1864 | const size_t pcmbuf_size = pcmbuf_init(filebuf + filebuflen) +GUARD_BUFSIZE; |
1865 | |||
1866 | #ifdef DEBUG | ||
1867 | if(pcmbuf_size > filebuflen) | 1865 | if(pcmbuf_size > filebuflen) |
1868 | panicf("Not enough memory for pcmbuf_init() : %d > %d", | 1866 | panicf("%s(): EOM (%d > %d)", __func__, (int)pcmbuf_size, (int)filebuflen); |
1869 | (int)pcmbuf_size, (int)filebuflen); | ||
1870 | #endif | ||
1871 | 1867 | ||
1872 | filebuflen -= pcmbuf_size; | 1868 | filebuflen -= pcmbuf_size; |
1873 | 1869 | ||