diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c index ecfb93363e..4fc0c33921 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -1074,10 +1074,12 @@ static void rebuffer_and_seek(size_t newpos) | |||
1074 | last_peek_offset = 0; | 1074 | last_peek_offset = 0; |
1075 | initialize_buffer_fill(true); | 1075 | initialize_buffer_fill(true); |
1076 | 1076 | ||
1077 | if (newpos > AUDIO_REBUFFER_GUESS_SIZE) | 1077 | if (newpos > AUDIO_REBUFFER_GUESS_SIZE) { |
1078 | buf_ridx += AUDIO_REBUFFER_GUESS_SIZE; | ||
1078 | cur_ti->start_pos = newpos - AUDIO_REBUFFER_GUESS_SIZE; | 1079 | cur_ti->start_pos = newpos - AUDIO_REBUFFER_GUESS_SIZE; |
1079 | else | 1080 | } else { |
1080 | cur_ti->start_pos = 0; | 1081 | cur_ti->start_pos = 0; |
1082 | } | ||
1081 | 1083 | ||
1082 | cur_ti->filerem = cur_ti->filesize - cur_ti->start_pos; | 1084 | cur_ti->filerem = cur_ti->filesize - cur_ti->start_pos; |
1083 | cur_ti->available = 0; | 1085 | cur_ti->available = 0; |