| | |
| | | auto in = init_reader(input_url_.c_str()); |
| | | |
| | | if (!in) { |
| | | logIt("ERROR: init_reader!\n"); |
| | | logIt("ERROR: init_reader! url: %s\n", input_url_.c_str()); |
| | | usleep(200000); |
| | | continue; |
| | | } |
| | |
| | | break; |
| | | } |
| | | //test |
| | | if(recorder_) |
| | | if(id % 250 == 0) |
| | | recorder_->FireRecorder(id); |
| | | // if(recorder_) |
| | | // if(id % 250 == 0) |
| | | // recorder_->FireRecorder(id); |
| | | } |
| | | } |
| | | } |
| | |
| | | info.file_frame_index = index; |
| | | info.file_path = path; |
| | | list_rec_.emplace_back(info); |
| | | logIt("list rec files count : %d", list_rec_.size()); |
| | | } |
| | | } |
| | | |
| | |
| | | index = info.file_frame_index; |
| | | path = info.file_path; |
| | | list_rec_.pop_front(); |
| | | logIt("go get info index: %d, file: %s\n", index, path.c_str()); |
| | | } |
| | | |
| | | ////////decoder |