From: Glenn-1990 Date: Fri, 18 Dec 2015 16:34:57 +0000 (+0100) Subject: fix autorec start window X-Git-Tag: v4.2.1~1283 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb2d274f4b7469a4acb15ee2c179c8ce2679c999;p=thirdparty%2Ftvheadend.git fix autorec start window --- diff --git a/src/htsp_server.c b/src/htsp_server.c index aff9cb4c2..d7302daa0 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -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))