]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
HTSP: In response to subscribe() message, return if we support timeshift or not
authorAndreas Öman <andreas@lonelycoder.com>
Thu, 10 Jan 2013 18:28:25 +0000 (19:28 +0100)
committerAndreas Öman <andreas@lonelycoder.com>
Thu, 10 Jan 2013 18:28:37 +0000 (19:28 +0100)
src/htsp_server.c

index 00eda674075d9a1de03b9388d61085cb912fc951..b59f35d98d312c824fc40b4d893c2639bbcea43f 100644 (file)
@@ -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 */