forked from len0rd/rockbox
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
This commit is contained in:
parent
2d95fd524d
commit
1df1e7b0c7
5 changed files with 5 additions and 21 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue