]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
add weight in subscribe response
authorGlenn-1990 <g_christiaensen@msn.com>
Wed, 4 Nov 2015 12:29:25 +0000 (13:29 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 5 Nov 2015 19:03:55 +0000 (20:03 +0100)
src/htsp_server.c

index 136e90807084becf4a1c846eb0b5fc566ab77bd4..a3e053594da26622a5962d3df4769c67790a353b 100644 (file)
@@ -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)