]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Implement RTSPServerType enum as a way to identify the flavour of RTSP that
authorrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 31 Aug 2008 17:30:15 +0000 (17:30 +0000)
committerrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 31 Aug 2008 17:30:15 +0000 (17:30 +0000)
the server will send to us (standard-compliant RTP or Realmedia-style RDT).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15123 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/rtsp.c

index 88d15c3f4e94170b330f3d33d62e2accbb5a742b..db1573048cf155081a53ef738a4d45b1cb9c81fd 100644 (file)
@@ -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;