From 3496051ff14c92ced851b6febd9b4f4bfea4b10c Mon Sep 17 00:00:00 2001 Message-Id: <3496051ff14c92ced851b6febd9b4f4bfea4b10c.1714841878.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 8 Dec 2007 12:26:04 +0000 Subject: [PATCH] empty track buffers aren't unplayable if at eof Organization: Straylight/Edgeware From: Richard Kettlewell --- server/speaker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/speaker.c b/server/speaker.c index 4082064..a6c5f43 100644 --- a/server/speaker.c +++ b/server/speaker.c @@ -352,7 +352,7 @@ static void speaker_play(size_t frames) { if(!playing->used || playing->start == (sizeof playing->buffer)) playing->start = 0; /* If the buffer emptied out mark the track as unplayably */ - if(!playing->used) { + if(!playing->used && !playing->eof) { error(0, "track buffer emptied"); playing->playable = 0; } -- [mdw]