]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
subscriptions: handle 'Continue even if descrambling fails' option correctly, fixes...
authorJaroslav Kysela <perex@perex.cz>
Thu, 30 Mar 2017 18:22:53 +0000 (20:22 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 30 Mar 2017 18:24:34 +0000 (20:24 +0200)
src/subscriptions.c

index cc5bc2162787ca50b2bb92c7b34cd78bfb8d992a..cf09a5cf5097453686b7df0e3235b7a6c50efa41 100644 (file)
@@ -558,7 +558,7 @@ subscription_input(void *opauqe, streaming_message_t *sm)
     }
 
     if(sm->sm_type == SMT_SERVICE_STATUS &&
-       sm->sm_code & TSS_ERRORS) {
+       sm->sm_code & (TSS_ERRORS|TSS_NO_ACCESS)) {
       // No, mark our subscription as bad_service
       // the scheduler will take care of things
       error = tss2errcode(sm->sm_code);
@@ -590,7 +590,7 @@ subscription_input(void *opauqe, streaming_message_t *sm)
   }
 
   if (sm->sm_type == SMT_SERVICE_STATUS &&
-      sm->sm_code & (TSS_TUNING|TSS_TIMEOUT)) {
+      sm->sm_code & (TSS_TUNING|TSS_TIMEOUT|TSS_NO_ACCESS)) {
     error = tss2errcode(sm->sm_code);
     if (error != SM_CODE_NO_ACCESS ||
         (s->ths_flags & SUBSCRIPTION_CONTACCESS) == 0) {