summaryrefslogtreecommitdiffstats
path: root/apps/buffering.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2007-11-05 16:02:12 +0000
committerBrandon Low <lostlogic@rockbox.org>2007-11-05 16:02:12 +0000
commit1df1e7b0c7f1932f45cfb189b43e873db1a85410 (patch)
treeedf57cc1bd9f3f7ba68b48c703f832798f16f122 /apps/buffering.c
parent2d95fd524db6de67e91024ee4d947a4ee25c43b6 (diff)
downloadrockbox-1df1e7b0c7f1932f45cfb189b43e873db1a85410.tar.gz
rockbox-1df1e7b0c7f1932f45cfb189b43e873db1a85410.zip
Remove unused conf_preseek from buffering.c and all of its accountraments. This is _not_ a setting. This is a guessing tool used by either playback or buffering to serve its clients better. Use the REBUFFER_GUESS size in resume to help obviate pondlife's bug. This will also need to be used when FS8092 gets fixed correctly with a complete rebuffer for backward movements. It may also belong in buffering not playback, haven't decided for sure
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15475 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index e448e4238f..811c1e5d65 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -135,8 +135,6 @@ static volatile size_t buf_ridx; /* current reading position */
static size_t conf_watermark = 0; /* Level to trigger filebuf fill */
static size_t conf_filechunk = 0; /* Bytes-per-read for buffering (impacts
responsiveness of buffering thread) */
-static size_t conf_preseek = 0; /* Distance a codec may look backwards after
- seeking, to prevent double rebuffers */
#if MEM > 8
static size_t high_watermark = 0; /* High watermark for rebuffer */
#endif
@@ -178,7 +176,6 @@ enum {
/* Configuration: */
Q_SET_WATERMARK,
Q_SET_CHUNKSIZE,
- Q_SET_PRESEEK,
Q_FILL_BUFFER, /* Request that the buffering thread initiate a buffer
fill at its earliest convenience */
};
@@ -1117,10 +1114,6 @@ void buf_set_conf(int setting, size_t value)
msg = Q_SET_CHUNKSIZE;
break;
- case BUFFERING_SET_PRESEEK:
- msg = Q_SET_PRESEEK;
- break;
-
default:
return;
}
@@ -1254,11 +1247,6 @@ void buffering_thread(void)
}
break;
- case Q_SET_PRESEEK:
- LOGFQUEUE("buffering < Q_SET_PRESEEK");
- conf_preseek = (size_t)ev.data;
- break;
-
#ifndef SIMULATOR
case SYS_USB_CONNECTED:
LOGFQUEUE("buffering < SYS_USB_CONNECTED");