diff rtsp.c @ 3854:8b2b84b5ef74 libavformat

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).
author rbultje
date Sun, 31 Aug 2008 17:30:15 +0000
parents 8137bcada0cd
children c9550824fd1c
line wrap: on
line diff
--- a/rtsp.c	Sun Aug 31 17:23:01 2008 +0000
+++ b/rtsp.c	Sun Aug 31 17:30:15 2008 +0000
@@ -42,6 +42,12 @@
     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 @@
     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;