mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 10:50:53 +00:00
new rtsp-destination option which allows forcing destination ip address (fixes some issues with some reluctant rtsp servers)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18879 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
381682bc97
commit
147aa0219a
@ -74,6 +74,7 @@
|
||||
{"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 --------------------
|
||||
|
||||
@ -416,6 +417,7 @@ extern int flip_hebrew;
|
||||
extern int rtspStreamOverTCP;
|
||||
#endif
|
||||
extern int rtsp_port;
|
||||
extern char *rtsp_destination;
|
||||
|
||||
|
||||
extern int audio_stream_cache;
|
||||
|
@ -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 @@ rtp_setup_and_play (rtsp_t *rtsp_session)
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user