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:
parent
522ec278ef
commit
8324725511
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue