]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Avoid segfault if transport quality is bad during transport_start()
authorAndreas Öman <andreas@lonelycoder.com>
Sun, 1 Mar 2009 18:38:02 +0000 (18:38 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Sun, 1 Mar 2009 18:38:02 +0000 (18:38 +0000)
Patch by Joakim Plate

transports.c

index c9c686c1c76dd652005546e0db0b348041a7251e..7c989ec3e91f988f167694cca20bc31ea8ecc48f 100644 (file)
@@ -359,7 +359,7 @@ transport_find(channel_t *ch, unsigned int weight)
   /* First, sort all transports in order */
 
   LIST_FOREACH(t, &ch->ch_transports, tht_ch_link)
-    if(!t->tht_disabled)
+    if(!t->tht_disabled && t->tht_quality_index(t) > 10)
       cnt++;
 
   vec = alloca(cnt * sizeof(th_transport_t *));