# HG changeset patch # User ben # Date 1151763486 0 # Node ID 57bb217e71a424c6267c371bed1dfdbcecd46f26 # Parent f974a20a7543ba1ca20566739be8a6f311f06f29 new rtsp-destination option which allows forcing destination ip address (fixes some issues with some reluctant rtsp servers) diff -r f974a20a7543 -r 57bb217e71a4 cfg-common.h --- a/cfg-common.h Sat Jul 01 12:06:43 2006 +0000 +++ b/cfg-common.h Sat Jul 01 14:18:06 2006 +0000 @@ -74,7 +74,8 @@ {"rtsp-stream-over-tcp", "RTSP support requires the \"LIVE555 Streaming Media\" libraries.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, #endif {"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL}, - + {"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL}, + // ------------------------- demuxer options -------------------- // number of frames to play/convert @@ -416,6 +417,7 @@ extern int rtspStreamOverTCP; #endif extern int rtsp_port; +extern char *rtsp_destination; extern int audio_stream_cache; diff -r f974a20a7543 -r 57bb217e71a4 libmpdemux/librtsp/rtsp_rtp.c --- a/libmpdemux/librtsp/rtsp_rtp.c Sat Jul 01 12:06:43 2006 +0000 +++ b/libmpdemux/librtsp/rtsp_rtp.c Sat Jul 01 14:18:06 2006 +0000 @@ -74,6 +74,7 @@ #define RTCP_SEND_FREQUENCY 1024 int rtsp_port = 0; +char *rtsp_destination = NULL; void rtcp_send_rr (rtsp_t *s, struct rtp_rtsp_session_t *st) @@ -656,7 +657,10 @@ } /* now check network settings as determined by server */ - destination = parse_destination (answer); + if (rtsp_destination) + destination = strdup (rtsp_destination); + else + destination = parse_destination (answer); if (!destination) destination = strdup (server_addr); free (server_addr);