]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: add one more no_data check, issue #4499
authorJaroslav Kysela <perex@perex.cz>
Tue, 12 Sep 2017 11:48:18 +0000 (13:48 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 9 Oct 2017 13:46:47 +0000 (15:46 +0200)
src/satip/rtsp.c

index 91c604f3af1ff0141d13cb2e28782042a2fa5bd0..b1ec95e140c9f1b2da2fd3450805b4147a769c08 100644 (file)
@@ -603,8 +603,11 @@ rtsp_start
       goto endclean;
     }
     if (rs->mux == mux && rs->subs) {
-      if (rs->no_data)
+      if (rs->no_data) {
+        tvhwarn(LS_SATIPS, "%i/%s/%i: subscription fails because mux %s can't tune",
+                rs->frontend, rs->session, rs->stream, buf);
         goto endclean;
+      }
       goto pids;
     }
     rtsp_clean(rs, 1);
@@ -1163,7 +1166,7 @@ rtsp_parse_cmd
     rs->stream = stream_id % 0x7fff;
   } else {
     /* don't subscribe to the new mux, if it was already done */
-    if (memcmp(dmc, &rs->dmc_tuned, sizeof(*dmc)) == 0)
+    if (memcmp(dmc, &rs->dmc_tuned, sizeof(*dmc)) == 0 && !rs->no_data)
       *valid = 0;
   }