]> 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:14:59 +0000 (11:14 +0200)
src/subscriptions.c

index b5af604d5467f51b2b49c532d43458d055e3c5fc..544b8d3ab1ea653cb9f62044fc7620e4e27f573d 100644 (file)
@@ -425,7 +425,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();