]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Check manual priority of adapter before interface weighting so that priority settings... 383/head
authorScott <scott2.ware@gmail.com>
Sun, 27 Apr 2014 17:44:32 +0000 (18:44 +0100)
committerScott <scott2.ware@gmail.com>
Sun, 27 Apr 2014 17:44:32 +0000 (18:44 +0100)
src/service.c

index fd765e794180c33b884bbc8f85019b5827c564ae..7436c1c6ad992042e829552c2f3d7b51bd3aea04 100644 (file)
@@ -1120,15 +1120,16 @@ service_refresh_channel(service_t *t)
 
 
 /**
- * Weight then prio?
+ * Priority Then Weight
  */
 static int
 si_cmp(const service_instance_t *a, const service_instance_t *b)
 {
   int r;
-  r = a->si_weight - b->si_weight;
+  r = a->si_prio - b->si_prio;
+
   if (!r)
-    r = a->si_prio - b->si_prio;
+    r = a->si_weight - b->si_weight;
   return r;
 }