]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: another little weight corection in get_weight callback for #3732
authorJaroslav Kysela <perex@perex.cz>
Tue, 19 Apr 2016 12:21:31 +0000 (14:21 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 19 Apr 2016 12:21:31 +0000 (14:21 +0200)
src/input/mpegts/iptv/iptv.c

index 33808f3ec611f24137ffda458b41e8360740c21e..4733615a6b5cf35f4475e56771bf57efac2cedb6 100644 (file)
@@ -203,7 +203,8 @@ iptv_input_get_weight ( mpegts_input_t *mi, mpegts_mux_t *mm, int flags, int wei
   int w;
 
   /* Find the "min" weight */
-  iptv_input_is_free(mi, mm, 1, weight, &w);
+  if (iptv_input_is_free(mi, mm, 1, weight, &w) == NULL)
+    w = 0;
 
   return w;