Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP server: fix url= for RTSP port != 554
  • Loading branch information
perexg committed Mar 23, 2015
1 parent 47f249f commit a139c25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/satip/rtsp.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit a139c25

Please sign in to comment.