Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
5deafc16
Commit
5deafc16
authored
Jan 21, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: use net_*.
parent
83c6d1f7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
200 additions
and
469 deletions
+200
-469
modules/access/mms/mms.c
modules/access/mms/mms.c
+11
-14
modules/access/mms/mmsh.c
modules/access/mms/mmsh.c
+143
-321
modules/access/mms/mmsh.h
modules/access/mms/mmsh.h
+2
-18
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+44
-116
No files found.
modules/access/mms/mms.c
View file @
5deafc16
...
...
@@ -2,7 +2,7 @@
* mms.c: MMS over tcp, udp and http access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mms.c,v 1.3
4 2003/05/15 22:27:36 massiot
Exp $
* $Id: mms.c,v 1.3
5 2004/01/21 16:56:16 fenrir
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -69,11 +69,6 @@ vlc_module_begin();
add_bool
(
"mms-all"
,
0
,
NULL
,
"force selection of all streams"
,
"force selection of all streams"
,
VLC_TRUE
);
#if 0
add_string( "mms-stream", NULL, NULL,
"streams selection",
"force this stream selection", VLC_TRUE );
#endif
add_integer
(
"mms-maxbitrate"
,
0
,
NULL
,
"max bitrate"
,
"set max bitrate for auto streams selections"
,
VLC_FALSE
);
...
...
@@ -89,9 +84,14 @@ static int Open( vlc_object_t *p_this )
{
input_thread_t
*
p_input
=
(
input_thread_t
*
)
p_this
;
int
i_err
;
/* First set ipv4/ipv6 */
var_Create
(
p_input
,
"ipv4"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"ipv6"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
/* mms-caching */
var_Create
(
p_input
,
"mms-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
/* use specified method */
if
(
*
p_input
->
psz_access
)
{
if
(
!
strncmp
(
p_input
->
psz_access
,
"mmsu"
,
4
)
)
...
...
@@ -108,15 +108,12 @@ static int Open( vlc_object_t *p_this )
}
}
i_err
=
E_
(
MMSTUOpen
)(
p_input
);
if
(
i_err
)
if
(
E_
(
MMSTUOpen
)(
p_input
)
)
{
i_err
=
E_
(
MMSHOpen
)(
p_input
);
/* try mmsh if mmstu failed */
return
E_
(
MMSHOpen
)(
p_input
);
}
return
i_err
;
return
VLC_SUCCESS
;
}
/*****************************************************************************
...
...
modules/access/mms/mmsh.c
View file @
5deafc16
This diff is collapsed.
Click to expand it.
modules/access/mms/mmsh.h
View file @
5deafc16
...
...
@@ -2,7 +2,7 @@
* mmsh.h:
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mmsh.h,v 1.
4 2003/08/26 00:51:19
fenrir Exp $
* $Id: mmsh.h,v 1.
5 2004/01/21 16:56:16
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -36,14 +36,12 @@ typedef struct
}
chunk_t
;
static
int
chunk_parse
(
chunk_t
*
,
uint8_t
*
,
int
);
#define BUFFER_SIZE 150000
struct
access_sys_t
{
int
i_proto
;
in
put_socket_t
*
p_socket
;
in
t
fd
;
url_t
*
p_url
;
int
i_request_context
;
...
...
@@ -68,14 +66,6 @@ struct access_sys_t
guid_t
guid
;
};
static
input_socket_t
*
NetOpenTCP
(
input_thread_t
*
,
url_t
*
);
static
ssize_t
NetRead
(
input_thread_t
*
,
input_socket_t
*
,
byte_t
*
,
size_t
);
static
ssize_t
NetWrite
(
input_thread_t
*
,
input_socket_t
*
,
byte_t
*
,
size_t
);
static
void
NetClose
(
input_thread_t
*
,
input_socket_t
*
);
static
ssize_t
NetFill
(
input_thread_t
*
,
access_sys_t
*
,
int
);
typedef
struct
http_field_s
{
char
*
psz_name
;
...
...
@@ -98,10 +88,4 @@ typedef struct
}
http_answer_t
;
static
http_answer_t
*
http_answer_parse
(
uint8_t
*
,
int
);
static
void
http_answer_free
(
http_answer_t
*
);
/* static char *http_field_get_value ( http_answer_t *, char * ); */
static
http_field_t
*
http_field_find
(
http_field_t
*
,
char
*
);
static
int
mmsh_start
(
input_thread_t
*
,
off_t
);
static
void
mmsh_stop
(
input_thread_t
*
);
modules/access/mms/mmstu.c
View file @
5deafc16
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment