diff options
author | Martin Storsjo <martin@martin.st> | 2011-01-24 09:49:01 +0000 |
---|---|---|
committer | Janne Grunau <janne-ffmpeg@jannau.net> | 2011-01-24 22:46:36 +0100 |
commit | fef5649a820b30432578e1440776e7a71bd523cc (patch) | |
tree | 0dd9b3fd43a3d52ce80431240d3ecc0f25524883 /libavformat | |
parent | 4be170c9371dfd3ae07a348b449002fc1d2b70e4 (diff) | |
download | ffmpeg-fef5649a820b30432578e1440776e7a71bd523cc.tar.gz |
rtsp: Make make_setup_request a nonstatic function
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 4 | ||||
-rw-r--r-- | libavformat/rtsp.h | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 2b61b89972..feb61937fb 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1017,7 +1017,7 @@ retry: /** * @return 0 on success, <0 on error, 1 if protocol is unavailable. */ -static int make_setup_request(AVFormatContext *s, const char *host, int port, +int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, int lower_transport, const char *real_challenge) { RTSPState *rt = s->priv_data; @@ -1493,7 +1493,7 @@ redirect: int lower_transport = ff_log2_tab[lower_transport_mask & ~(lower_transport_mask - 1)]; - err = make_setup_request(s, host, port, lower_transport, + err = ff_rtsp_make_setup_request(s, host, port, lower_transport, rt->server_type == RTSP_SERVER_REAL ? real_challenge : NULL); if (err < 0) diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index eee07ac0e7..2ef68db18b 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -504,4 +504,11 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, */ int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt); +/** + * Do the SETUP requests for each stream for the chosen + * lower transport mode. + */ +int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, + int lower_transport, const char *real_challenge); + #endif /* AVFORMAT_RTSP_H */ |