chiark / gitweb /
empty track buffers aren't unplayable if at eof
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 8 Dec 2007 12:26:04 +0000 (12:26 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 8 Dec 2007 12:26:04 +0000 (12:26 +0000)
server/speaker.c

index 4082064841abe608e80008d64457eb775dd46104..a6c5f43e16f4f560b869422013fc0895ca5dd7f6 100644 (file)
@@ -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;
   }