]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
subscription: try to iterate through all adapters on tuning failed error, fixes ...
authorJaroslav Kysela <perex@perex.cz>
Mon, 1 Oct 2018 09:14:59 +0000 (11:14 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 1 Oct 2018 09:16:07 +0000 (11:16 +0200)
src/subscriptions.c

index 17a654bd0012eef5b7f61e8bdc3e159038e5f898..f8c2a587cb228da5e93bd35be8aabda8807bbcc4 100644 (file)
@@ -401,7 +401,9 @@ subscription_reschedule(void)
     s->ths_current_instance = si;
 
     if(si == NULL) {
-      if (s->ths_last_error != error || s->ths_last_find + sec2mono(2) >= mclk()) {
+      if (s->ths_last_error != error ||
+          s->ths_last_find + sec2mono(2) >= mclk() ||
+          error == SM_CODE_TUNING_FAILED) {
         tvhtrace(LS_SUBSCRIPTION, "%04X: instance not available, retrying", shortid(s));
         if (s->ths_last_error != error)
           s->ths_last_find = mclk();