Buffer RTSP performance

This commit is contained in:
marmei
2019-10-04 19:39:20 +02:00
parent 7c87d1d5bd
commit 20e5e1b545
8 changed files with 148 additions and 131 deletions

View File

@@ -130,7 +130,13 @@ func searchFileInOS(file string) (path string) {
out, err := cmd.CombinedOutput()
if err == nil {
path = strings.Trim(string(out), "\r\n")
var slice = strings.Split(strings.Replace(string(out), "\r\n", "\n", -1), "\n")
if len(slice) > 0 {
path = strings.Trim(slice[0], "\r\n")
}
}
default: