From 14fb1f9e1d149530f19425295250d0cc30c34a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Thu, 10 Jan 2013 19:28:25 +0100 Subject: [PATCH] HTSP: In response to subscribe() message, return if we support timeshift or not --- src/htsp_server.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/htsp_server.c b/src/htsp_server.c index 00eda674..b59f35d9 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 */