zhangmeng
2021-05-25 23c29d81f2c917bbb80fbfbeb285bb45a159331a
bug fixed gb28181 capture picture
1个文件已修改
6 ■■■■ 已修改文件
capture.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
capture.go
@@ -50,13 +50,13 @@
    }
    reterr := errors.New(fmt.Sprintf("gb28181 try %d times to capture image, is url correct?", maxTry))
    for i := 0; i < maxTry; i++ {
        ret = goffmpeg.GetGBJpg(url)
    // for i := 0; i < maxTry; i++ {
    ret = goffmpeg.GetGBJpg(url, maxTry)
        if len(ret) > 0 {
            reterr = nil
            break
        }
    }
    // }
    goffmpeg.FreeFFmpeg()