From 1df1e7b0c7f1932f45cfb189b43e873db1a85410 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Mon, 5 Nov 2007 16:02:12 +0000 Subject: 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 --- apps/buffering.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'apps/buffering.c') 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"); -- cgit v1.2.3