]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: add short DESCRIBE, fix incorrect delivery system, fix frontend and...
authorJaroslav Kysela <perex@perex.cz>
Tue, 25 Jul 2017 14:55:41 +0000 (16:55 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 18 Sep 2017 13:00:40 +0000 (15:00 +0200)
src/satip/rtp.c
src/satip/rtsp.c

index 34efba604546c4b86b89313168450e6203504863..644c05d3596fa6f50687b6ad9cf03e606b8686a8 100644 (file)
@@ -811,7 +811,9 @@ satip_status_build(satip_rtp_session_t *rtp, char *buf, int len)
       c2tft, ds, plp, specinv, pids);
     break;
   default:
-    return 0;
+    r = snprintf(buf, len, "ver=1.0;src=%d;tuner=%d,%d,%d,%d,,,,,,,,;pids=%s",
+                 rtp->source, rtp->frontend, level, lock, quality, pids);
+    break;
   }
 
   return r >= len ? len - 1 : r;
index ac5672293a020bd08c1ecdf525bfd5272eb277b3..8e0c3fa65954849e5b8a242850db2f095730fd40 100644 (file)
@@ -562,6 +562,7 @@ rtsp_start
                            &rs->dmc, 1);
       if (mux) {
         created = 1;
+        dmc = ((dvb_mux_t *)mux)->lm_tuning;
         rs->perm_lock = 1;
       }
     }
@@ -619,7 +620,7 @@ pids:
                     &hc->hc_fd_lock, hc->hc_peer, rs->rtp_peer_port,
                     rs->udp_rtp ? rs->udp_rtp->fd : hc->hc_fd,
                     rs->udp_rtcp ? rs->udp_rtcp->fd : -1,
-                    rs->frontend, rs->findex, &rs->dmc_tuned,
+                    rs->findex, rs->src, &rs->dmc_tuned,
                     &rs->pids,
                     ocmd == RTSP_CMD_PLAY || oldstate == STATE_PLAY,
                     rs->perm_lock);
@@ -874,7 +875,7 @@ rtsp_parse_cmd
    session_t **rrs, int *valid, int *oldstate)
 {
   session_t *rs = NULL;
-  int errcode = HTTP_STATUS_BAD_REQUEST, r, findex = 0, has_args, weight = 0;
+  int errcode = HTTP_STATUS_BAD_REQUEST, r, findex = 1, has_args, weight = 0;
   int delsys = DVB_SYS_NONE, msys, fe, src, freq, pol, sr;
   int fec, ro, plts, bw, tmode, mtype, gi, plp, t2id, sm, c2tft, ds, specinv;
   char *s;
@@ -1109,6 +1110,7 @@ rtsp_parse_cmd
 
   dmc->dmc_fe_freq = freq;
   dmc->dmc_fe_modulation = mtype;
+  dmc->dmc_fe_delsys = delsys;
   rs->delsys = delsys;
   rs->frontend = fe;
   rs->findex = findex;