]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP server: improve descramble service selection (pmt based)
authorJaroslav Kysela <perex@perex.cz>
Thu, 18 Feb 2016 14:26:48 +0000 (15:26 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 18 Feb 2016 14:26:48 +0000 (15:26 +0100)
src/satip/rtsp.c

index a32327169861ac8f740cacc473bec0fd1654851f..b0799b9865855ec54703cc35636935974af42671 100644 (file)
@@ -402,7 +402,9 @@ rtsp_validate_service(mpegts_service_t *s, mpegts_apids_t *pids)
           av = 1;
   }
   pthread_mutex_unlock(&s->s_stream_mutex);
-  return enc && av;
+  if (enc == 0 || av == 0)
+    return 0;
+  return pids == NULL || mpegts_pid_wexists(pids, s->s_pmt_pid, MPS_WEIGHT_RAW);
 }
 
 /*