Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix autorec start window
  • Loading branch information
Glenn-1990 authored and perexg committed Dec 26, 2015
1 parent effbf60 commit fb2d274
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/htsp_server.c
Expand Up @@ -575,10 +575,9 @@ serierec_convert(htsp_connection_t *htsp, htsmsg_t *in, channel_t *ch, int autor
start_window = start + 30;
if (start_window >= 24 * 60)
start_window -= 24 * 60;

htsmsg_add_s32(conf, "start", start >= 0 ? start : -1); // -1 = any time
htsmsg_add_s32(conf, "start_window", start_window >= 0 ? start_window : -1); // -1 = any duration
}
htsmsg_add_s32(conf, "start", start >= 0 ? start : -1); // -1 = any time
htsmsg_add_s32(conf, "start_window", start_window >= 0 ? start_window : -1); // -1 = any duration
}
else { // for update, we don't care about "approxTime"
if(!htsmsg_get_s32(in, "start", &s32))
Expand Down

0 comments on commit fb2d274

Please sign in to comment.