summaryrefslogtreecommitdiff
path: root/apps/codecs/mpa.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-01-18 20:22:03 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-01-18 20:22:03 +0000
commit1060e447f83128a78dfaa8d59ba0baa642d15a4d (patch)
tree9af0876f9c5d0ad5cb8bfc2adc7b1653c43013ff /apps/codecs/mpa.c
parent3ded3cea756d8290372b808884837931a7e8cf1a (diff)
downloadrockbox-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.c7
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;
}