summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.h
diff options
context:
space:
mode:
authorAndrey Utkin <andrey.utkin@corp.bluecherry.net>2014-03-04 15:43:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-03-04 22:54:13 +0100
commitbc764d786fe6d6eda2e1621acfaa08b8aebb0cac (patch)
tree29ab3a8e32255d461a53a57538213a3147d0e892 /libavformat/rtsp.h
parent206167a295a5c28cec3c38f7308835b0b7e0618f (diff)
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 <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r--libavformat/rtsp.h1
1 files changed, 1 insertions, 0 deletions
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) */