From 77fbd1027503a94a218cd055783137c6580c50e1 Mon Sep 17 00:00:00 2001 From: Alex Eidt Date: Thu, 29 Dec 2022 15:54:18 -0800 Subject: [PATCH] Read() returns total > 0 --- audio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio.go b/audio.go index 9f8d6e5..4a71ea1 100644 --- a/audio.go +++ b/audio.go @@ -290,7 +290,7 @@ func (audio *Audio) Read() bool { } } - return true + return total > 0 } // Closes the pipe and stops the ffmpeg process.