|
|
|
|
@ -69,7 +69,7 @@ int convert_debug_open(uint32_t pixelformat, int srcw, int srch) {
|
|
|
|
|
//
|
|
|
|
|
// check to create file, if not possible try creating the directory and create the file again
|
|
|
|
|
tmptr = localtime(&t);
|
|
|
|
|
strftime(fname, LEN_FILENAME, "%F-%R", tmptr);
|
|
|
|
|
strftime(fname, LEN_FILENAME, "%Y%m%d-%H%M%S", tmptr);
|
|
|
|
|
snprintf (fullfname, LEN_FULLFILENAME, "%s/%s.videodump", config.debugpath, fname);
|
|
|
|
|
|
|
|
|
|
if ((convert_debug_fd = creat (fullfname, 0666)) == -1) {
|
|
|
|
|
|