mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
rtsp: Make rtsp_open_transport_ctx() non-static
This is required for the upcoming RTSP listen mode. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
6bbb362218
commit
6e71c1202b
@ -595,7 +595,7 @@ void ff_rtsp_close_streams(AVFormatContext *s)
|
||||
av_free(rt->recvbuf);
|
||||
}
|
||||
|
||||
static int rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st)
|
||||
int ff_rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st)
|
||||
{
|
||||
RTSPState *rt = s->priv_data;
|
||||
AVStream *st = NULL;
|
||||
@ -1402,7 +1402,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
|
||||
}
|
||||
}
|
||||
|
||||
if ((err = rtsp_open_transport_ctx(s, rtsp_st)))
|
||||
if ((err = ff_rtsp_open_transport_ctx(s, rtsp_st)))
|
||||
goto fail;
|
||||
}
|
||||
|
||||
@ -1925,7 +1925,7 @@ static int sdp_read_header(AVFormatContext *s)
|
||||
err = AVERROR_INVALIDDATA;
|
||||
goto fail;
|
||||
}
|
||||
if ((err = rtsp_open_transport_ctx(s, rtsp_st)))
|
||||
if ((err = ff_rtsp_open_transport_ctx(s, rtsp_st)))
|
||||
goto fail;
|
||||
}
|
||||
return 0;
|
||||
|
@ -561,6 +561,11 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
|
||||
*/
|
||||
void ff_rtsp_undo_setup(AVFormatContext *s);
|
||||
|
||||
/**
|
||||
* Open RTSP transport context.
|
||||
*/
|
||||
int ff_rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st);
|
||||
|
||||
extern const AVOption ff_rtsp_options[];
|
||||
|
||||
#endif /* AVFORMAT_RTSP_H */
|
||||
|
Loading…
Reference in New Issue
Block a user