(uuid string)
| 53 | } |
| 54 | |
| 55 | func (element *ConfigST) RunIFNotRun(uuid string) { |
| 56 | element.mutex.Lock() |
| 57 | defer element.mutex.Unlock() |
| 58 | if tmp, ok := element.Streams[uuid]; ok { |
| 59 | if tmp.OnDemand && !tmp.RunLock { |
| 60 | tmp.RunLock = true |
| 61 | element.Streams[uuid] = tmp |
| 62 | go RTSPWorkerLoop(uuid, tmp.URL, tmp.OnDemand, tmp.DisableAudio, tmp.Debug) |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func (element *ConfigST) RunUnlock(uuid string) { |
| 68 | element.mutex.Lock() |
no test coverage detected