diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-01-18 20:22:03 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-01-18 20:22:03 +0000 |
| commit | 1060e447f83128a78dfaa8d59ba0baa642d15a4d (patch) | |
| tree | 9af0876f9c5d0ad5cb8bfc2adc7b1653c43013ff /apps/codecs/mpa.c | |
| parent | 3ded3cea756d8290372b808884837931a7e8cf1a (diff) | |
| download | rockbox-1060e447f83128a78dfaa8d59ba0baa642d15a4d.zip rockbox-1060e447f83128a78dfaa8d59ba0baa642d15a4d.tar.gz rockbox-1060e447f83128a78dfaa8d59ba0baa642d15a4d.tar.bz2 rockbox-1060e447f83128a78dfaa8d59ba0baa642d15a4d.tar.xz | |
Part of the profiling patch to use a consistent return path in all codecs to facilitate 'on exit' functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8374 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/mpa.c')
| -rw-r--r-- | apps/codecs/mpa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index 3c57f3f..3ee2b35 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -75,7 +75,7 @@ void recalc_samplecount(void) /* this is the codec entry point */ enum codec_status codec_start(struct codec_api *api) { - int status = 0; + int status = CODEC_OK; long size; int file_end; int frame_skip; /* samples to skip current frame */ @@ -193,7 +193,7 @@ next_track: continue; } else { /* Some other unrecoverable error */ - status = 1; + status = CODEC_ERROR; break; } break; @@ -264,5 +264,6 @@ next_track: if (ci->request_next_track()) goto next_track; - return CODEC_OK; + + return status; } |