@ -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);