Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Resync mpc to r476 of svn.musepack.org. Improves error handling after seek.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31093 a1c6a512-1295-4272-9138-f99709370657

+9 -4
+9 -4
apps/codecs/libmusepack/mpc_demux.c
··· 625 625 } 626 626 627 627 mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i) { 628 - mpc_status s = mpc_demux_decode_inner(d, i); 629 - if (MPC_IS_FAILURE(s)) 630 - i->bits = -1; // we pretend it's end of file 631 - return s; 628 + for(;;) { 629 + // mpc_demux_decode_inner may return 0 samples and require repeated calls after a seek. Loop over until we have data to return. 630 + mpc_status s = mpc_demux_decode_inner(d, i); 631 + if (MPC_IS_FAILURE(s)) 632 + i->bits = -1; // we pretend it's end of file 633 + 634 + if (MPC_IS_FAILURE(s) || i->samples > 0) 635 + return s; 636 + } 632 637 } 633 638 634 639 /* rockbox: not used