Fix filestream retrival bug due to shadowing

This commit is contained in:
Zoe Roux 2024-01-15 17:37:18 +01:00
parent aef30fecaa
commit 6bb23d7acd

View File

@ -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()