Correctly identify end of file.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9803 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2006-04-25 19:52:08 +00:00
parent 522ec278ef
commit 8324725511

View file

@ -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;