Skip to content

Commit

Permalink
Fix hot marking system calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Nov 12, 2024
1 parent 899810a commit 1f457b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ui/page_playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,15 @@ static void mark_video_file(int const seq) {

const int index = find_next_available_hot_index();

char cmd[256];
char cmd[512];
char newLabel[68];
sprintf(newLabel, "%s%s", REC_hotPREFIX, pnode->label);

sprintf(cmd, "mv %s%s %s%s.%s", MEDIA_FILES_DIR, pnode->filename, MEDIA_FILES_DIR, newLabel, pnode->ext);
sprintf(cmd, "mv %s%s %s%s.%s", pnode->parent->filename, pnode->filename, pnode->parent->filename, newLabel, pnode->ext);
system_exec(cmd);
sprintf(cmd, "mv %s%s." REC_packJPG " %s%s." REC_packJPG, pnode->parent->filename, pnode->label, pnode->parent->filename, newLabel);
system_exec(cmd);
sprintf(cmd, "mv %s%s." REC_packJPG " %s%s." REC_packJPG, MEDIA_FILES_DIR, pnode->label, MEDIA_FILES_DIR, newLabel);
sprintf(cmd, "mv %s%s" REC_starSUFFIX " %s%s.%s" REC_starSUFFIX, pnode->parent->filename, pnode->filename, pnode->parent->filename, newLabel, pnode->ext);
system_exec(cmd);

walk_sdcard();
Expand Down

0 comments on commit 1f457b8

Please sign in to comment.