Browse Source

avoid create fragment record file

master
qshi 7 years ago
parent
commit
c9aad82569
  1. 7
      record/video_record.c

7
record/video_record.c

@ -69,6 +69,13 @@ static void *__record_pthread(void *arg)
tm->tm_hour, tm->tm_min, tm->tm_sec, vc->id);
__recording(vc->dev_name, vr->file_frames, fn);
if (time(NULL) < (timep + 5)) {
char cmd[260];
snprintf(cmd, sizeof cmd, "rm -rf %s", fn);
my_system(cmd);
usleep(200 * 1000);
}
usleep(0);
}

Loading…
Cancel
Save