maintain (ctx): pass app context as pointer

This commit is contained in:
Mickael Kerjean
2022-08-30 17:24:25 +10:00
parent b62a9dd423
commit a82177e719
19 changed files with 199 additions and 178 deletions

View File

@ -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"])