diff options
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 3c57f3f33f..3ee2b352f1 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c | |||
@@ -75,7 +75,7 @@ void recalc_samplecount(void) | |||
75 | /* this is the codec entry point */ | 75 | /* this is the codec entry point */ |
76 | enum codec_status codec_start(struct codec_api *api) | 76 | enum codec_status codec_start(struct codec_api *api) |
77 | { | 77 | { |
78 | int status = 0; | 78 | int status = CODEC_OK; |
79 | long size; | 79 | long size; |
80 | int file_end; | 80 | int file_end; |
81 | int frame_skip; /* samples to skip current frame */ | 81 | int frame_skip; /* samples to skip current frame */ |
@@ -193,7 +193,7 @@ next_track: | |||
193 | continue; | 193 | continue; |
194 | } else { | 194 | } else { |
195 | /* Some other unrecoverable error */ | 195 | /* Some other unrecoverable error */ |
196 | status = 1; | 196 | status = CODEC_ERROR; |
197 | break; | 197 | break; |
198 | } | 198 | } |
199 | break; | 199 | break; |
@@ -264,5 +264,6 @@ next_track: | |||
264 | 264 | ||
265 | if (ci->request_next_track()) | 265 | if (ci->request_next_track()) |
266 | goto next_track; | 266 | goto next_track; |
267 | return CODEC_OK; | 267 | |
268 | return status; | ||
268 | } | 269 | } |