From 55014e264c9be50ddc2c7b35bf7f7f2a40c7f389 Mon Sep 17 00:00:00 2001 From: Serge Tkatchouk Date: Thu, 20 Feb 2020 22:02:18 +0800 Subject: [PATCH] "Unexport" encodeTrack() It's only used by StreamTrack() anyway. --- server/ctrlsubsonic/handlers_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/ctrlsubsonic/handlers_cache.go b/server/ctrlsubsonic/handlers_cache.go index 2926a78..84052be 100644 --- a/server/ctrlsubsonic/handlers_cache.go +++ b/server/ctrlsubsonic/handlers_cache.go @@ -41,11 +41,11 @@ func StreamTrack(w http.ResponseWriter, r *http.Request, trackPath string, clien http.ServeFile(w, r, cacheFile) } else { fmt.Printf("`%s`: cache [%s/%s] miss!\n", trackPath, profile.format, profile.bitrate) - EncodeTrack(w, r, trackPath, cacheFile, profile) + encodeTrack(w, r, trackPath, cacheFile, profile) } } -func EncodeTrack(w http.ResponseWriter, r *http.Request, trackPath string, cachePath string, profile *encoderProfile) { +func encodeTrack(w http.ResponseWriter, r *http.Request, trackPath string, cachePath string, profile *encoderProfile) { // Prepare the command and file descriptors: cmd := ffmpegCommand(trackPath, profile) pipeReader, pipeWriter := io.Pipe()