Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 9065764

Browse files
committed
Fix timelapse
1 parent 9c985e9 commit 9065764

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/movie.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,18 +1696,18 @@ int movie_init_timelapse(ctx_dev *cam)
16961696

16971697
/* The increment of 10 is to allow for the extension and other chars*/
16981698
len = (int)(strlen(tmp) + cam->conf->target_dir.length() + 10);
1699-
cam->movie_norm->full_nm = (char*)mymalloc(len);
1699+
cam->movie_timelapse->full_nm = (char*)mymalloc(len);
17001700
retcd = snprintf(cam->movie_timelapse->full_nm, len, "%s/%s"
17011701
, cam->conf->target_dir.c_str(), tmp);
17021702

17031703
len = (int)cam->conf->target_dir.length() + 10;
1704-
cam->movie_norm->movie_dir = (char*)mymalloc(len);
1705-
retcd = snprintf(cam->movie_norm->movie_dir,len,"%s"
1704+
cam->movie_timelapse->movie_dir = (char*)mymalloc(len);
1705+
retcd = snprintf(cam->movie_timelapse->movie_dir,len,"%s"
17061706
,cam->conf->target_dir.c_str());
17071707

17081708
len = (int)strlen(tmp) + 10;
1709-
cam->movie_norm->movie_nm = (char*)mymalloc(len);
1710-
retcd = snprintf(cam->movie_norm->movie_nm, len, "%s", tmp);
1709+
cam->movie_timelapse->movie_nm = (char*)mymalloc(len);
1710+
retcd = snprintf(cam->movie_timelapse->movie_nm, len, "%s", tmp);
17111711

17121712
if (retcd < 0) {
17131713
MOTPLS_LOG(ERR, TYPE_ALL, NO_ERRNO

0 commit comments

Comments
 (0)