From a139c2545c7a620051b04d7f2e67f1f0da0b1db3 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 23 Mar 2015 10:54:10 +0100 Subject: [PATCH] SAT>IP server: fix url= for RTSP port != 554 --- src/satip/rtsp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/satip/rtsp.c b/src/satip/rtsp.c index 95f5b6de..110ba1cc 100644 --- a/src/satip/rtsp.c +++ b/src/satip/rtsp.c @@ -1301,7 +1301,10 @@ rtsp_process_play(http_connection_t *hc, int setup) snprintf(buf, sizeof(buf), "%d", rs->stream); http_arg_set(&args, "com.ses.streamID", buf); } else { - snprintf(buf, sizeof(buf), "url=rtsp://%s/stream=%d", rtsp_ip, rs->stream); + if (rtsp_port != 554) + snprintf(buf, sizeof(buf), "url=rtsp://%s:%d/stream=%d", rtsp_ip, rtsp_port, rs->stream); + else + snprintf(buf, sizeof(buf), "url=rtsp://%s/stream=%d", rtsp_ip, rs->stream); http_arg_set(&args, "RTP-Info", buf); }