]> 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>
Tue, 12 Sep 2017 11:50:21 +0000 (13:50 +0200)
src/satip/rtsp.c

index 31fa4335dfeeb8913bd845229609ac41f20ba3a2..f0d7beb4e83f793370e012bbbb42a4bb3f6bfaa6 100644 (file)
@@ -587,8 +587,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);
@@ -1138,7 +1141,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;
   }