From: Glenn-1990 Date: Wed, 4 Nov 2015 12:29:25 +0000 (+0100) Subject: add weight in subscribe response X-Git-Tag: v4.2.1~1652 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8cab0af98ea1193d307b881265559d74b6b878fb;p=thirdparty%2Ftvheadend.git add weight in subscribe response --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 136e90807..a3e053594 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -2277,6 +2277,8 @@ htsp_method_subscribe(htsp_connection_t *htsp, htsmsg_t *in) htsmsg_add_u32(rep, "90khz", 1); if(hs->hs_prch.prch_sharer->prsh_tsfix) htsmsg_add_u32(rep, "normts", 1); + if(hs->hs_s) + htsmsg_add_u32(rep, "weight", hs->hs_s->ths_weight >= 0 ? hs->hs_s->ths_weight : 0); #if ENABLE_TIMESHIFT if(timeshiftPeriod)