]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP server: small weight handling cleanup
authorJaroslav Kysela <perex@perex.cz>
Mon, 30 Nov 2015 21:44:10 +0000 (22:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Nov 2015 21:44:10 +0000 (22:44 +0100)
src/satip/rtsp.c

index 8643194678cc84cc7ea6421036cd872b6fa83fde..7cca46f22ced56061a09246c0676971b0ea69e42 100644 (file)
@@ -1074,7 +1074,10 @@ rtsp_parse_cmd
   rs->delsys = delsys;
   rs->frontend = fe;
   rs->findex = findex;
-  rs->weight = weight > 0 ? weight : 0;
+  if (weight > 0)
+    rs->weight = weight;
+  else if (cmd == 1)
+    rs->weight = 0;
   rs->old_hc = hc;
 
   if (cmd) {