aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-08-31 17:30:15 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-08-31 17:30:15 +0000
commite0776043356a87f363da977405b24016ba44f596 (patch)
treec0dc1ba26d5ccc6a17fbb89f3fb12ac7a729f928 /libavformat/rtsp.c
parent75128a2273821076cef78e7674df72ac8e66bc2c (diff)
downloadffmpeg-e0776043356a87f363da977405b24016ba44f596.tar.gz
Implement RTSPServerType enum as a way to identify the flavour of RTSP that
the server will send to us (standard-compliant RTP or Realmedia-style RDT). Originally committed as revision 15123 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 88d15c3f4e..db1573048c 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -42,6 +42,12 @@ enum RTSPClientState {
RTSP_STATE_PAUSED,
};
+enum RTSPServerType {
+ RTSP_SERVER_RTP, /*< Standard-compliant RTP-server */
+ RTSP_SERVER_RDT, /*< Realmedia-style server */
+ RTSP_SERVER_LAST
+};
+
typedef struct RTSPState {
URLContext *rtsp_hd; /* RTSP TCP connexion handle */
int nb_rtsp_streams;
@@ -55,6 +61,7 @@ typedef struct RTSPState {
int seq; /* RTSP command sequence number */
char session_id[512];
enum RTSPProtocol protocol;
+ enum RTSPServerType server_type;
char last_reply[2048]; /* XXX: allocate ? */
RTPDemuxContext *cur_rtp;
} RTSPState;