Commit 4cf2f458 authored by Laurent Aimar's avatar Laurent Aimar

* asf: fixed unintialised variable, cleaned up some stuffs.

 * mmsh: big rework of the mmsh module.
parent a9ddba27
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* asf.c: MMS access plug-in * asf.c: MMS access plug-in
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: asf.c,v 1.3 2004/02/12 20:09:38 fenrir Exp $ * $Id$
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -73,6 +73,8 @@ void E_( asf_HeaderParse ) ( asf_header_t *hdr, ...@@ -73,6 +73,8 @@ void E_( asf_HeaderParse ) ( asf_header_t *hdr,
for( i = 0; i < 128; i++ ) for( i = 0; i < 128; i++ )
{ {
hdr->stream[i].i_cat = ASF_STREAM_UNKNOWN; hdr->stream[i].i_cat = ASF_STREAM_UNKNOWN;
hdr->stream[i].i_selected = 0;
hdr->stream[i].i_bitrate = -1;
} }
//fprintf( stderr, " ---------------------header:%d\n", i_header ); //fprintf( stderr, " ---------------------header:%d\n", i_header );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* asf.h: MMS access plug-in * asf.h: MMS access plug-in
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: asf.h,v 1.5 2003/04/20 19:29:43 fenrir Exp $ * $Id$
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -34,11 +34,9 @@ ...@@ -34,11 +34,9 @@
typedef struct asf_stream_s typedef struct asf_stream_s
{ {
int i_id; /* 1 -> 127 */
int i_cat; /* ASF_STREAM_VIDEO, ASF_STREAM_AUDIO */ int i_cat; /* ASF_STREAM_VIDEO, ASF_STREAM_AUDIO */
int i_bitrate; /* -1 if unknown */ int i_bitrate; /* -1 if unknown */
int i_selected; int i_selected;
} asf_stream_t; } asf_stream_t;
typedef struct typedef struct
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* mmsh.h: * mmsh.h:
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: mmsh.h,v 1.5 2004/01/21 16:56:16 fenrir Exp $ * $Id$
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -36,18 +36,16 @@ typedef struct ...@@ -36,18 +36,16 @@ typedef struct
} chunk_t; } chunk_t;
#define BUFFER_SIZE 150000 #define BUFFER_SIZE 65536
struct access_sys_t struct access_sys_t
{ {
int i_proto; int i_proto;
int fd; int fd;
url_t *p_url; vlc_url_t url;
int i_request_context; int i_request_context;
int i_buffer;
int i_buffer_pos;
uint8_t buffer[BUFFER_SIZE + 1]; uint8_t buffer[BUFFER_SIZE + 1];
vlc_bool_t b_broadcast; vlc_bool_t b_broadcast;
...@@ -65,27 +63,3 @@ struct access_sys_t ...@@ -65,27 +63,3 @@ struct access_sys_t
asf_header_t asfh; asf_header_t asfh;
guid_t guid; guid_t guid;
}; };
typedef struct http_field_s
{
char *psz_name;
char *psz_value;
struct http_field_s *p_next;
} http_field_t;
typedef struct
{
int i_version;
int i_error;
char *psz_answer;
http_field_t *p_fields;
uint8_t *p_body;
int i_body;
} http_answer_t;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment