1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Index: apps/buffering.c
===================================================================
--- apps/buffering.c  (revision 27941)
+++ apps/buffering.c  (working copy)
@@ -57,7 +57,7 @@
 #define GUARD_BUFSIZE   (32*1024)

 /* Define LOGF_ENABLE to enable logf output in this file */
-/*#define LOGF_ENABLE*/
+#define LOGF_ENABLE
 #include "logf.h"

 /* macros to enable logf for queues
@@ -775,6 +775,7 @@

     /* When seeking foward off of the buffer, if it is a short seek don't
        rebuffer the whole track, just read enough to satisfy */
+       /*
     if (newpos > h->offset && newpos - h->offset < BUFFERING_DEFAULT_FILECHUNK)
     {
         LOGFQUEUE("buffering >| Q_BUFFER_HANDLE %d", handle_id);
@@ -782,6 +783,7 @@
         h->ridx = h->data + newpos;
         return;
     }
+    */
 
     h->offset = newpos;
 
@@ -1167,6 +1169,7 @@
         return ERR_INVALID_VALUE;
     }
     else if (newpos < h->offset || h->offset + h->available < newpos) {
+        logf("bufseek > rebuffer");
         /* access before or after buffered data. A rebuffer is needed. */
         rebuffer_handle(handle_id, newpos);
     }