]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP client: improve traces, fixes #4754
authorJaroslav Kysela <perex@perex.cz>
Thu, 21 Dec 2017 16:44:16 +0000 (17:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 Dec 2017 16:45:11 +0000 (17:45 +0100)
From: Mono Polimorph

src/input/mpegts/satip/satip_frontend.c
src/input/mpegts/satip/satip_rtsp.c

index 631c6d8a485f120746127fd973e9edbf63724adf..95c123dfe2f1a36a8a0d2d7a9a441044e5bb0336 100644 (file)
@@ -1304,6 +1304,7 @@ satip_frontend_extra_shutdown
   rtsp->hc_efd = efd;
 
   snprintf(b, sizeof(b), "/stream=%li", stream_id);
+  tvhtrace(LS_SATIP, "TEARDOWN request for session %s stream id %li", session, stream_id);
   r = rtsp_teardown(rtsp, b, NULL);
   if (r < 0) {
     tvhtrace(LS_SATIP, "bad shutdown for session %s stream id %li", session, stream_id);
@@ -1994,6 +1995,7 @@ new_tune:
     if (rtsp->hc_ping_time + sec2mono(rtsp->hc_rtp_timeout / 2) < mclk() &&
         rtsp->hc_cmd == HTTP_CMD_NONE) {
       rtsp_options(rtsp);
+      tvhtrace(LS_SATIP, "%s - OPTIONS request", buf);
       reply = 1;
     }
 
index 71abaa1d268fa9489447c34c60968b4e4835c1ef..a3df237321b02a34a1be8b348c1899fe303442dc 100644 (file)
@@ -233,7 +233,7 @@ satip_rtsp_setup( http_client_t *hc, int src, int fe,
       strcat(buf, ",21");
   } else if (flags & SATIP_SETUP_PIDS21)
     strcat(buf, "&pids=21");
-  tvhtrace(LS_SATIP, "setup params - %s", buf);
+  tvhtrace(LS_SATIP, "SETUP params - %s", buf);
   if (hc->hc_rtsp_stream_id >= 0)
     snprintf(stream = _stream, sizeof(_stream), "/stream=%li",
              hc->hc_rtsp_stream_id);
@@ -309,6 +309,7 @@ satip_rtsp_play( http_client_t *hc, const char *pids,
     snprintf(stream = _stream, sizeof(_stream), "/stream=%li",
              hc->hc_rtsp_stream_id);
   query = htsbuf_to_string(&q);
+  tvhtrace(LS_SATIP, "PLAY params - %s", query);
   r = rtsp_play(hc, stream, query);
   free(query);
   if (r >= 0 && split) {