From 88d2663bc550c2d976aeef0482c7032553d184db Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 26 May 2021 13:03:42 +0900 Subject: [PATCH] audio/internal/readerdriver: Mark EOF at the first reading --- audio/internal/readerdriver/driver_android.go | 1 + 1 file changed, 1 insertion(+) diff --git a/audio/internal/readerdriver/driver_android.go b/audio/internal/readerdriver/driver_android.go index 4a04a97dc..9438c6584 100644 --- a/audio/internal/readerdriver/driver_android.go +++ b/audio/internal/readerdriver/driver_android.go @@ -134,6 +134,7 @@ func (p *player) playImpl() { } p.p.AppendBuffer(buf[:n]) if err == io.EOF { + p.eof = true break } }