Index: apps/codecs/mpc.c
===================================================================
--- apps/codecs/mpc.c  (Revision 30367)
+++ apps/codecs/mpc.c  (Arbeitskopie)
@@ -124,21 +124,27 @@
 
     /* Resume to saved sample offset. */
     elapsed_time = 0;
-
+    
+    /*
     if (samplesdone > 0) 
     {
+    printf("start seek\n");
         if (mpc_demux_seek_sample(demux, samplesdone) == MPC_STATUS_OK) 
         {
+    printf("seek ready\n");
             elapsed_time = (samplesdone*10)/frequency;
             ci->set_elapsed(elapsed_time);
+    printf("seek set_elapsed\n");
         } 
         else 
         {
             samplesdone = 0;
         }
     }
-
+printf("startup set_elapsed\n");
+*/
     ci->set_elapsed(elapsed_time);
+    int loop_idx = 0;
 
     /* This is the decoding loop. */
     do 
@@ -148,9 +154,27 @@
         if (action == CODEC_ACTION_HALT)
             return CODEC_OK;
 
+        if (samplesdone > 0 && loop_idx == 40) 
+        {
+        printf("start resume\n");
+            if (mpc_demux_seek_sample(demux, samplesdone) == MPC_STATUS_OK) 
+            {
+        printf("resume ready\n");
+                elapsed_time = (samplesdone*10)/frequency;
+                ci->set_elapsed(elapsed_time);
+        printf("resume set_elapsed\n");
+            } 
+            else 
+            {
+                samplesdone = 0;
+            }
+        }
+        ++loop_idx;
+       
         /* Complete seek handler. */
         if (action == CODEC_ACTION_SEEK_TIME) 
         {
+        printf("start seek\n");
             mpc_int64_t new_offset = (param/10)*frequency;
             if (mpc_demux_seek_sample(demux, new_offset) == MPC_STATUS_OK) 
             {