From: Andreas Ă–man Date: Thu, 10 Jan 2013 18:28:25 +0000 (+0100) Subject: HTSP: In response to subscribe() message, return if we support timeshift or not X-Git-Tag: v3.5~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14fb1f9e1d149530f19425295250d0cc30c34a95;p=thirdparty%2Ftvheadend.git HTSP: In response to subscribe() message, return if we support timeshift or not --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 00eda6740..b59f35d98 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1282,6 +1282,11 @@ htsp_method_subscribe(htsp_connection_t *htsp, htsmsg_t *in) if(normts) htsmsg_add_u32(rep, "normts", 1); +#if ENABLE_TIMESHIFT + if(timeshiftPeriod) + htsmsg_add_u32(rep, "timeshiftPeriod", timeshiftPeriod); +#endif + htsp_reply(htsp, in, rep); /* Initialize the HTSP subscription structure */