Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR autorec: more start,start_window type cleanups
  • Loading branch information
perexg committed Dec 25, 2014
1 parent e07ee90 commit 03b88ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dvr/dvr.h
Expand Up @@ -485,7 +485,7 @@ dvr_entry_create_(const char *config_uuid, epg_broadcast_t *e,

dvr_autorec_entry_t *
dvr_autorec_create_htsp(const char *dvr_config_name, const char *title,
channel_t *ch, uint32_t start, uint32_t start_window,
channel_t *ch, int32_t start, int32_t start_window,
uint32_t days, time_t start_extra, time_t stop_extra,
dvr_prio_t pri, int retention,
int min_duration, int max_duration,
Expand Down
7 changes: 4 additions & 3 deletions src/dvr/dvr_autorec.c
Expand Up @@ -178,6 +178,7 @@ dvr_autorec_create(const char *uuid, htsmsg_t *conf)
dae->dae_weekdays = 0x7f;
dae->dae_pri = DVR_PRIO_NORMAL;
dae->dae_start = -1;
dae->dae_start_window = -1;
dae->dae_config = dvr_config_find_by_name_default(NULL);
LIST_INSERT_HEAD(&dae->dae_config->dvr_autorec_entries, dae, dae_config_link);

Expand All @@ -193,7 +194,7 @@ dvr_autorec_create(const char *uuid, htsmsg_t *conf)

dvr_autorec_entry_t*
dvr_autorec_create_htsp(const char *dvr_config_name, const char *title,
channel_t *ch, uint32_t start, uint32_t start_window,
channel_t *ch, int32_t start, int32_t start_window,
uint32_t weekdays, time_t start_extra, time_t stop_extra,
dvr_prio_t pri, int retention,
int min_duration, int max_duration,
Expand All @@ -219,9 +220,9 @@ dvr_autorec_create_htsp(const char *dvr_config_name, const char *title,
htsmsg_add_str(conf, "comment", comment ?: "");

if (start >= 0)
htsmsg_add_u32(conf, "start", start);
htsmsg_add_s32(conf, "start", start);
if (start_window >= 0)
htsmsg_add_u32(conf, "start_window", start_window);
htsmsg_add_s32(conf, "start_window", start_window);
if (ch)
htsmsg_add_str(conf, "channel", idnode_uuid_as_str(&ch->ch_id));

Expand Down

0 comments on commit 03b88ce

Please sign in to comment.