csrc/buz/recorder.cpp
@@ -96,6 +96,9 @@ //callback to frame index and path if(func_rec_info_){ func_rec_info_(file_frame_index_, file_path_); logIt("recoder index %d, file name %s\n", file_frame_index_, file_path_.c_str()); }else{ logIt("recorder has no func_rec_info"); } } @@ -222,7 +225,7 @@ void Recorder::maybe_dump_gop(){ //超过min/2,丢弃gop while (list_pkt_.size() > minduration) { while (list_pkt_.size() > maxduration) { list_pkt_.pop_front(); while(!list_pkt_.empty()){ auto &cache = list_pkt_.front();