1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: apps/codecs/libmusepack/mpc_demux.c
===================================================================
--- apps/codecs/libmusepack/mpc_demux.c  (Revision 31210)
+++ apps/codecs/libmusepack/mpc_demux.c  (Arbeitskopie)
@@ -624,16 +624,12 @@
     return MPC_STATUS_OK;
 }
 
-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 mpc_demux_decode(mpc_demux * d, mpc_frame_info * i) 
+{
     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