]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
subscriptions: fix the weight init issue caused by last commits
authorJaroslav Kysela <perex@perex.cz>
Fri, 24 Apr 2015 14:48:20 +0000 (16:48 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 24 Apr 2015 14:48:20 +0000 (16:48 +0200)
src/subscriptions.c

index 56415a561aaaf54a0569d44fe914363322e4761f..9ac7d23663487102912f33b21b2ebc7595e6ff6b 100644 (file)
@@ -654,6 +654,8 @@ subscription_create
 
   if (s->ths_prch)
     s->ths_weight = profile_chain_weight(s->ths_prch, weight);
+  else
+    s->ths_weight = weight;
 
   if (pro && pro->pro_restart)
     s->ths_flags |= SUBSCRIPTION_RESTART;