From bc764d786fe6d6eda2e1621acfaa08b8aebb0cac Mon Sep 17 00:00:00 2001 From: Andrey Utkin Date: Tue, 4 Mar 2014 15:43:59 +0200 Subject: Add "prefer_tcp" flag to "rtsp_flags" If set, and if TCP is available as RTSP RTP transport, then TCP will be tried first as RTP transport. Signed-off-by: Michael Niedermayer --- libavformat/rtsp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/rtsp.h') diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 76c7f181cf..d159793835 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -413,6 +413,7 @@ typedef struct RTSPState { #define RTSP_FLAG_CUSTOM_IO 0x4 /**< Do all IO via the AVIOContext. */ #define RTSP_FLAG_RTCP_TO_SOURCE 0x8 /**< Send RTCP packets to the source address of received packets. */ +#define RTSP_FLAG_PREFER_TCP 0x10 /**< Try RTP via TCP first if possible. */ typedef struct RTSPSource { char addr[128]; /**< Source-specific multicast include source IP address (from SDP content) */ -- cgit v1.2.3