mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-29 17:18:43 +08:00
maintain (ctx): pass app context as pointer
This commit is contained in:
@ -164,7 +164,7 @@ func hls_playlist(reader io.ReadCloser, ctx *App, res *http.ResponseWriter, req
|
||||
return NewReadCloserFromBytes([]byte(response)), nil
|
||||
}
|
||||
|
||||
func hls_transcode(ctx App, res http.ResponseWriter, req *http.Request) {
|
||||
func hls_transcode(ctx *App, res http.ResponseWriter, req *http.Request) {
|
||||
segmentNumber, err := strconv.Atoi(mux.Vars(req)["segment"])
|
||||
if err != nil {
|
||||
Log.Info("[plugin hls] invalid segment request '%s'", mux.Vars(req)["segment"])
|
||||
|
||||
Reference in New Issue
Block a user