From 6bb23d7acdc438df569764445fb034204dd26758 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 15 Jan 2024 17:37:18 +0100 Subject: [PATCH] Fix filestream retrival bug due to shadowing --- transcoder/src/transcoder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transcoder/src/transcoder.go b/transcoder/src/transcoder.go index 09b9b957..84b3935c 100644 --- a/transcoder/src/transcoder.go +++ b/transcoder/src/transcoder.go @@ -39,7 +39,8 @@ func (t *Transcoder) getFileStream(path string) (*FileStream, error) { t.cleanUnused() t.mutex.Unlock() - stream, err := NewFileStream(path) + var err error + stream, err = NewFileStream(path) log.Printf("Stream created for %s", path) if err != nil { t.mutex.Lock()