changeset 4377:8d6f64b2e949 libavformat

Move enum RTSPTransport up a bit, so that all fields that are assigned a value of this type can be properly attributed as such (in this case, transport in the RTSPTransportField struct). See "[PATCH] RTSP-MS 10/15: ASF header parsing" thread on mailinglist.
author rbultje
date Wed, 04 Feb 2009 17:17:20 +0000
parents 2b46680bf82f
children 490fde1dcbe5
files rtsp.h
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.h	Wed Feb 04 09:35:59 2009 +0000
+++ b/rtsp.h	Wed Feb 04 17:17:20 2009 +0000
@@ -37,6 +37,12 @@
     RTSP_LOWER_TRANSPORT_LAST
 };
 
+enum RTSPTransport {
+    RTSP_TRANSPORT_RTP,
+    RTSP_TRANSPORT_RDT,
+    RTSP_TRANSPORT_LAST
+};
+
 #define RTSP_DEFAULT_PORT   554
 #define RTSP_MAX_TRANSPORTS 8
 #define RTSP_TCP_MAX_PACKET_SIZE 1472
@@ -52,7 +58,7 @@
     int server_port_min, server_port_max; /**< RTP ports */
     int ttl; /**< ttl value */
     uint32_t destination; /**< destination IP address */
-    int transport;
+    enum RTSPTransport transport;
     enum RTSPLowerTransport lower_transport;
 } RTSPTransportField;
 
@@ -82,12 +88,6 @@
     RTSP_SERVER_LAST
 };
 
-enum RTSPTransport {
-    RTSP_TRANSPORT_RTP,
-    RTSP_TRANSPORT_RDT,
-    RTSP_TRANSPORT_LAST
-};
-
 typedef struct RTSPState {
     URLContext *rtsp_hd; /* RTSP TCP connexion handle */
     int nb_rtsp_streams;