diff options
author | Martin Storsjö <martin@martin.st> | 2013-10-30 19:12:45 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-11-01 09:57:06 +0200 |
commit | 50aef03b24d949249b020226dffa3a78077f1056 (patch) | |
tree | 99f576b21f7c68ff57ef8d6c717b567306bdc86d /libavformat/rtsp.h | |
parent | 9ceed7af377cea6a430d63a2f5d5cf1afe0d4f05 (diff) | |
download | ffmpeg-50aef03b24d949249b020226dffa3a78077f1056.tar.gz |
rtspenc: Make sure BYE packets are sent before TEARDOWN
Also make sure the BYE packets are sent at all when using
TCP interleaved transport.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r-- | libavformat/rtsp.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index c6f2ffae4b..7a910b06db 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -588,6 +588,11 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, uint8_t *buf, int buf_size); /** + * Send buffered packets over TCP. + */ +int ff_rtsp_tcp_write_packet(AVFormatContext *s, RTSPStream *rtsp_st); + +/** * Receive one packet from the RTSPStreams set up in the AVFormatContext * (which should contain a RTSPState struct as priv_data). */ @@ -605,7 +610,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, * Undo the effect of ff_rtsp_make_setup_request, close the * transport_priv and rtp_handle fields. */ -void ff_rtsp_undo_setup(AVFormatContext *s); +void ff_rtsp_undo_setup(AVFormatContext *s, int send_packets); /** * Open RTSP transport context. |