aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--NEWS1
-rw-r--r--src/player_thread.c12
2 files changed, 10 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 1acfd7975..12e671e1c 100644
--- a/NEWS
+++ b/NEWS
@@ -52,6 +52,7 @@ ver 0.15 - (200?/??/??)
* listen: fix broken client IP addresses in log
* 32 bit audio support
* Print available protocols in --version
+* fill buffer after seeking
ver 0.14.2 (2009/02/13)
diff --git a/src/player_thread.c b/src/player_thread.c
index a41fc5c01..35d403044 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -300,9 +300,8 @@ static bool player_seek_decoder(struct player *player)
player->xfade = XFADE_UNKNOWN;
- /* abort buffering when the user has requested
- a seek */
- player->buffering = false;
+ /* re-fill the buffer after seeking */
+ player->buffering = true;
audio_output_all_cancel();
@@ -588,6 +587,13 @@ static void do_play(void)
if (music_pipe_size(player.pipe) < pc.buffered_before_play &&
!decoder_is_idle()) {
/* not enough decoded buffer space yet */
+
+ if (!player.paused &&
+ audio_format_defined(&player.play_audio_format) &&
+ audio_output_all_check() < 4 &&
+ !player_send_silence(&player))
+ break;
+
notify_wait(&pc.notify);
continue;
} else {