mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix filestream retrival bug due to shadowing
This commit is contained in:
parent
aef30fecaa
commit
6bb23d7acd
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user