]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Parse RTCP server port, it is mandatory to send RTCP reports
authorAdrien CLERC <adrien@antipoul.fr>
Sun, 31 May 2015 13:06:13 +0000 (15:06 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2015 13:38:15 +0000 (15:38 +0200)
src/http.h
src/rtsp.c

index 147032ec285dac71f9c72337e30d3114dd5de2fa..dd3c193565143855b419ca740f9c6429a78be8d6 100644 (file)
@@ -319,6 +319,7 @@ struct http_client {
   char        *hc_rtp_dest;
   int          hc_rtp_port;
   int          hc_rtpc_port;
+  int          hc_rtcp_server_port;
   int          hc_rtp_multicast:1;
   long         hc_rtsp_stream_id;
   int          hc_rtp_timeout;
index a851fa0d96474da1f53aaf621749f872b63326ab..4f706f94bfeaaee61f3649e3aa30b2117b294a30 100644 (file)
@@ -170,6 +170,16 @@ rtsp_setup_decode( http_client_t *hc, int satip )
         return -EIO;
       }
     }
+    else if (strncmp(argv[i], "server_port=", 12) == 0) {
+      j = http_tokenize(argv[i] + 12, argv2, 2, '-');
+      if (j > 1) {
+        hc->hc_rtcp_server_port = atoi(argv2[1]);
+        if (hc->hc_rtcp_server_port <= 0)
+          return -EIO;
+      } else {
+        return -EIO;
+      }
+    }
   }
   return HTTP_CON_OK;
 }