Commit d89a08d8 authored by Martin Storsjo's avatar Martin Storsjo Committed by Michael Niedermayer

rtsp: Make make_setup_request a nonstatic function

Signed-off-by: 's avatarJanne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit fef5649a)
parent 1a172ce6
...@@ -1017,7 +1017,7 @@ retry: ...@@ -1017,7 +1017,7 @@ retry:
/** /**
* @return 0 on success, <0 on error, 1 if protocol is unavailable. * @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) int lower_transport, const char *real_challenge)
{ {
RTSPState *rt = s->priv_data; RTSPState *rt = s->priv_data;
...@@ -1493,7 +1493,7 @@ redirect: ...@@ -1493,7 +1493,7 @@ redirect:
int lower_transport = ff_log2_tab[lower_transport_mask & int lower_transport = ff_log2_tab[lower_transport_mask &
~(lower_transport_mask - 1)]; ~(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 ? rt->server_type == RTSP_SERVER_REAL ?
real_challenge : NULL); real_challenge : NULL);
if (err < 0) if (err < 0)
......
...@@ -504,4 +504,11 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, ...@@ -504,4 +504,11 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
*/ */
int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt); 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 */ #endif /* AVFORMAT_RTSP_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment