You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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
This commit is contained in:
@@ -42,6 +42,12 @@ enum RTSPClientState {
|
|||||||
RTSP_STATE_PAUSED,
|
RTSP_STATE_PAUSED,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum RTSPServerType {
|
||||||
|
RTSP_SERVER_RTP, /*< Standard-compliant RTP-server */
|
||||||
|
RTSP_SERVER_RDT, /*< Realmedia-style server */
|
||||||
|
RTSP_SERVER_LAST
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct RTSPState {
|
typedef struct RTSPState {
|
||||||
URLContext *rtsp_hd; /* RTSP TCP connexion handle */
|
URLContext *rtsp_hd; /* RTSP TCP connexion handle */
|
||||||
int nb_rtsp_streams;
|
int nb_rtsp_streams;
|
||||||
@@ -55,6 +61,7 @@ typedef struct RTSPState {
|
|||||||
int seq; /* RTSP command sequence number */
|
int seq; /* RTSP command sequence number */
|
||||||
char session_id[512];
|
char session_id[512];
|
||||||
enum RTSPProtocol protocol;
|
enum RTSPProtocol protocol;
|
||||||
|
enum RTSPServerType server_type;
|
||||||
char last_reply[2048]; /* XXX: allocate ? */
|
char last_reply[2048]; /* XXX: allocate ? */
|
||||||
RTPDemuxContext *cur_rtp;
|
RTPDemuxContext *cur_rtp;
|
||||||
} RTSPState;
|
} RTSPState;
|
||||||
|
Reference in New Issue
Block a user