]> git.sesse.net Git - vlc/blobdiff - modules/access/mms/mmstu.h
Made the mmsh protocol adhere to content-length header if it receives Connection...
[vlc] / modules / access / mms / mmstu.h
index 2560c007e50e739702d05cdb273f263fa3e1a8cb..f924209d507ac89a04d4bf84570c00edb7d4f1ca 100644 (file)
@@ -34,8 +34,6 @@
 
 #define MMS_BUFFER_SIZE 100000
 
-typedef struct mmstu_keepalive_thread_t mmstu_keepalive_thread_t;
-
 struct access_sys_t
 {
     int         i_proto;        /* MMS_PROTO_TCP, MMS_PROTO_UDP */
@@ -67,10 +65,10 @@ struct access_sys_t
     int         i_packet_seq_num;
 
     uint8_t     *p_cmd;     /* latest command read */
-    int         i_cmd;      /* allocated at the begining */
+    size_t      i_cmd;      /* allocated at the begining */
 
     uint8_t     *p_header;  /* allocated by mms_ReadPacket */
-    int         i_header;
+    size_t      i_header;
 
     uint8_t     *p_media;   /* allocated by mms_ReadPacket */
     size_t      i_media;
@@ -91,22 +89,14 @@ struct access_sys_t
     size_t      i_packet_length;
     uint32_t    i_packet_count;
     int         i_max_bit_rate;
-    int         i_header_size;
+    size_t      i_header_size;
 
     /* misc */
     bool  b_seekable;
 
-    mmstu_keepalive_thread_t *p_keepalive_thread;
-    vlc_mutex_t lock_netwrite;
-};
-
-struct mmstu_keepalive_thread_t
-{
-    VLC_COMMON_MEMBERS
-
-    access_t *p_access;
-    bool b_paused;
-    bool b_thread_error;
+    vlc_mutex_t  lock_netwrite;
+    bool         b_keep_alive;
+    vlc_thread_t keep_alive;
 };
 
 #endif