diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-04-25 19:52:08 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-04-25 19:52:08 +0000 |
commit | 83247255113d3c53feeea92350c34edd18c3b18f (patch) | |
tree | e7f058a4f6ba6e6eb41c313f7e087cb2e03a8f8a /apps/codecs/mpc.c | |
parent | 522ec278ef05ea9831f51d64e41a4121272e2152 (diff) | |
download | rockbox-83247255113d3c53feeea92350c34edd18c3b18f.tar.gz rockbox-83247255113d3c53feeea92350c34edd18c3b18f.zip |
Correctly identify end of file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9803 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/mpc.c')
-rw-r--r-- | apps/codecs/mpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/mpc.c b/apps/codecs/mpc.c index ee639012b9..aa79e55866 100644 --- a/apps/codecs/mpc.c +++ b/apps/codecs/mpc.c @@ -168,6 +168,8 @@ next_track: status = mpc_decoder_decode(&decoder, sample_buffer, NULL, NULL); ci->yield(); + if (status == 0) /* end of file reached */ + goto done; if (status == (unsigned)(-1)) { /* decode error */ retval = CODEC_ERROR; goto done; |