From: Jaroslav Kysela Date: Mon, 30 Nov 2015 21:44:10 +0000 (+0100) Subject: SAT>IP server: small weight handling cleanup X-Git-Tag: v4.2.1~1430 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7408e9cace2d543c9599326ae6856f336f04028d;p=thirdparty%2Ftvheadend.git SAT>IP server: small weight handling cleanup --- diff --git a/src/satip/rtsp.c b/src/satip/rtsp.c index 864319467..7cca46f22 100644 --- a/src/satip/rtsp.c +++ b/src/satip/rtsp.c @@ -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) {