Roll back the latest mpc upstream sync as this introduced a regression. Fixes FS#12429.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31211 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
489436385f
commit
2b3bb1e84b
1 changed files with 1 additions and 6 deletions
|
@ -625,15 +625,10 @@ static mpc_status mpc_demux_decode_inner(mpc_demux * d, mpc_frame_info * i)
|
|||
}
|
||||
|
||||
mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i) {
|
||||
for(;;) {
|
||||
// mpc_demux_decode_inner may return 0 samples and require repeated calls after a seek. Loop over until we have data to return.
|
||||
mpc_status s = mpc_demux_decode_inner(d, i);
|
||||
if (MPC_IS_FAILURE(s))
|
||||
i->bits = -1; // we pretend it's end of file
|
||||
|
||||
if (MPC_IS_FAILURE(s) || i->samples > 0)
|
||||
return s;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
/* rockbox: not used
|
||||
|
|
Loading…
Reference in a new issue