Don't deref dvr_postproc if it is NULL.
This commit is contained in:
parent
50a1c9e79e
commit
2c3032d878
1 changed files with 2 additions and 1 deletions
|
@ -1063,7 +1063,8 @@ extjs_dvr(http_connection_t *hc, const char *remain, void *opaque)
|
|||
|
||||
r = htsmsg_create();
|
||||
htsmsg_add_str(r, "storage", dvr_storage);
|
||||
htsmsg_add_str(r, "postproc", dvr_postproc);
|
||||
if(dvr_postproc != NULL)
|
||||
htsmsg_add_str(r, "postproc", dvr_postproc);
|
||||
htsmsg_add_u32(r, "retention", dvr_retention_days);
|
||||
htsmsg_add_u32(r, "dayDirs", !!(dvr_flags & DVR_DIR_PER_DAY));
|
||||
htsmsg_add_u32(r, "channelDirs", !!(dvr_flags & DVR_DIR_PER_CHANNEL));
|
||||
|
|
Loading…
Add table
Reference in a new issue