From 3582d0a4a24b5492a8e6297b89f94756e5d36e1b Mon Sep 17 00:00:00 2001 From: Serge Tkatchouk Date: Sat, 22 Feb 2020 11:04:04 +0800 Subject: [PATCH] Also unexport streamTrack(), since it's only used in `ctrlsubsonic` --- server/ctrlsubsonic/handlers_cache.go | 2 +- server/ctrlsubsonic/handlers_raw.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/ctrlsubsonic/handlers_cache.go b/server/ctrlsubsonic/handlers_cache.go index f80a60e..2c02af8 100644 --- a/server/ctrlsubsonic/handlers_cache.go +++ b/server/ctrlsubsonic/handlers_cache.go @@ -29,7 +29,7 @@ var ( bufLen = 4096 ) -func StreamTrack(w http.ResponseWriter, r *http.Request, trackPath string, client string, clBitrate int, cachePath string) { +func streamTrack(w http.ResponseWriter, r *http.Request, trackPath string, client string, clBitrate int, cachePath string) { // Guess required format based on client: profileName := detectFormat(client) profile := encProfiles[profileName] diff --git a/server/ctrlsubsonic/handlers_raw.go b/server/ctrlsubsonic/handlers_raw.go index 886cc83..92d56dc 100644 --- a/server/ctrlsubsonic/handlers_raw.go +++ b/server/ctrlsubsonic/handlers_raw.go @@ -73,7 +73,7 @@ func (c *Controller) ServeStream(w http.ResponseWriter, r *http.Request) *spec.R track.Album.RightPath, track.Filename, ) - StreamTrack(w, r, absPath, client, bitrate, c.CachePath) + streamTrack(w, r, absPath, client, bitrate, c.CachePath) // // after we've served the file, mark the album as played