Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: fix files moved function, fixes #3818
  • Loading branch information
perexg committed Jun 6, 2016
1 parent 189dcb6 commit 31b99e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dvr/dvr_db.c
Expand Up @@ -3531,7 +3531,8 @@ dvr_entry_file_moved(const char *src, const char *dst)
if (!src || !dst || src[0] == '\0' || dst[0] == '\0' || access(dst, R_OK))
return r;
pthread_mutex_lock(&global_lock);
LIST_FOREACH(de, &dvrentries, de_global_link)
LIST_FOREACH(de, &dvrentries, de_global_link) {
if (htsmsg_is_empty(de->de_files)) continue;
HTSMSG_FOREACH(f, de->de_files)
if ((m = htsmsg_field_get_map(f)) != NULL) {
filename = htsmsg_get_str(m, "filename");
Expand All @@ -3541,6 +3542,7 @@ dvr_entry_file_moved(const char *src, const char *dst)
r = 0;
}
}
}
pthread_mutex_unlock(&global_lock);
return r;
}
Expand Down

0 comments on commit 31b99e2

Please sign in to comment.