video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-25 02258ea3c79c03612aff0c248547543caaf95174
wait time
1个文件已修改
7 ■■■■ 已修改文件
csrc/wrapper.cpp 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
csrc/wrapper.cpp
@@ -162,17 +162,12 @@
    void Wrapper::run_stream_thread(){
        
        int tryTime = 0;
        while(!stop_stream_.load()){
            auto in = init_reader(input_url_.c_str());
            
            if (!in) {
                logIt("ERROR: init_reader! url: %s\n", input_url_.c_str());
                usleep(200000);
                tryTime++;
                if (tryTime == 50){
                    break;
                }
                sleep(2);
                continue;
            }