From bd147efe7b145d400306ec9a61311508775aaca2 Mon Sep 17 00:00:00 2001 From: Alexander Leidinger Date: Tue, 25 Aug 2020 10:14:14 +0000 Subject: [PATCH] Fix the "Could not close audio input file" message when decoding from mp3 or transcoding. The message only occurred on Win32 builds of lame.exe. Submitted by: Michael Fink via [patches:#93] --- frontend/get_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/get_audio.c b/frontend/get_audio.c index 3e08d6f7..a1583588 100644 --- a/frontend/get_audio.c +++ b/frontend/get_audio.c @@ -2113,7 +2113,7 @@ static off_t lame123_seek_in_file(void* handle, off_t offset, int direction) static void lame123_cleanup_file(void* handle) { - fclose((FILE*)handle); + /* don't call fclose(); close_input_file() will do that */ } #endif