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
2f9b46d4
Commit
2f9b46d4
authored
Mar 16, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mms: removed some old stuff.
parent
a8ca3919
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
29 deletions
+17
-29
modules/access/mms/mms.c
modules/access/mms/mms.c
+17
-29
No files found.
modules/access/mms/mms.c
View file @
2f9b46d4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mms.c: MMS access plug-in
* mms.c: MMS access plug-in
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mms.c,v 1.2
6 2003/03/16 01:37:44
fenrir Exp $
* $Id: mms.c,v 1.2
7 2003/03/16 01:49:28
fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -1528,8 +1528,14 @@ static int NetFillBuffer( input_thread_t *p_input )
...
@@ -1528,8 +1528,14 @@ static int NetFillBuffer( input_thread_t *p_input )
i_tcp_read
);
i_tcp_read
);
}
}
#endif
#endif
if
(
i_tcp_read
>
0
)
{
p_access
->
i_buffer_tcp
+=
i_tcp_read
;
p_access
->
i_buffer_tcp
+=
i_tcp_read
;
}
if
(
i_udp_read
>
0
)
{
p_access
->
i_buffer_udp
+=
i_udp_read
;
p_access
->
i_buffer_udp
+=
i_udp_read
;
}
return
(
i_tcp_read
+
i_udp_read
);
return
(
i_tcp_read
+
i_udp_read
);
#endif
#endif
...
@@ -1622,7 +1628,6 @@ static int mms_ParsePacket( input_thread_t *p_input,
...
@@ -1622,7 +1628,6 @@ static int mms_ParsePacket( input_thread_t *p_input,
uint8_t
*
p_packet
;
uint8_t
*
p_packet
;
// *pi_used = i_data; /* default */
*
pi_used
=
i_data
;
/* default */
*
pi_used
=
i_data
;
/* default */
if
(
i_data
<=
8
)
if
(
i_data
<=
8
)
{
{
...
@@ -1729,7 +1734,6 @@ static int mms_ReceivePacket( input_thread_t *p_input )
...
@@ -1729,7 +1734,6 @@ static int mms_ReceivePacket( input_thread_t *p_input )
msg_Warn
(
p_input
,
"cannot fill buffer"
);
msg_Warn
(
p_input
,
"cannot fill buffer"
);
continue
;
continue
;
}
}
/* TODO udp */
i_packet_tcp_type
=
-
1
;
i_packet_tcp_type
=
-
1
;
i_packet_udp_type
=
-
1
;
i_packet_udp_type
=
-
1
;
...
@@ -1755,7 +1759,7 @@ static int mms_ReceivePacket( input_thread_t *p_input )
...
@@ -1755,7 +1759,7 @@ static int mms_ReceivePacket( input_thread_t *p_input )
p_access
->
i_buffer_tcp
,
p_access
->
i_buffer_tcp
,
&
i_used
);
&
i_used
);
}
}
if
(
i_used
<
MMS_BUFFER_SIZE
)
if
(
i_used
>
0
&&
i_used
<
MMS_BUFFER_SIZE
)
{
{
memmove
(
p_access
->
buffer_tcp
,
memmove
(
p_access
->
buffer_tcp
,
p_access
->
buffer_tcp
+
i_used
,
p_access
->
buffer_tcp
+
i_used
,
...
@@ -1766,26 +1770,14 @@ static int mms_ReceivePacket( input_thread_t *p_input )
...
@@ -1766,26 +1770,14 @@ static int mms_ReceivePacket( input_thread_t *p_input )
else
if
(
p_access
->
i_buffer_udp
>
0
)
else
if
(
p_access
->
i_buffer_udp
>
0
)
{
{
int
i_used
;
int
i_used
;
#if 0
if( GetDWLE( p_access->buffer_tcp + 4 ) == 0xb00bface )
{
i_packet_tcp_type =
mms_ParseCommand( p_input,
p_access->buffer_tcp,
p_access->i_buffer_tcp,
&i_used );
}
i_packet_udp_type
=
else
#endif
{
i_packet_tcp_type
=
mms_ParsePacket
(
p_input
,
mms_ParsePacket
(
p_input
,
p_access
->
buffer_udp
,
p_access
->
buffer_udp
,
p_access
->
i_buffer_udp
,
p_access
->
i_buffer_udp
,
&
i_used
);
&
i_used
);
}
if
(
i_used
<
MMS_BUFFER_SIZE
)
if
(
i_used
>
0
&&
i_used
<
MMS_BUFFER_SIZE
)
{
{
memmove
(
p_access
->
buffer_udp
,
memmove
(
p_access
->
buffer_udp
,
p_access
->
buffer_udp
+
i_used
,
p_access
->
buffer_udp
+
i_used
,
...
@@ -1793,10 +1785,6 @@ static int mms_ReceivePacket( input_thread_t *p_input )
...
@@ -1793,10 +1785,6 @@ static int mms_ReceivePacket( input_thread_t *p_input )
}
}
p_access
->
i_buffer_udp
-=
i_used
;
p_access
->
i_buffer_udp
-=
i_used
;
}
}
else
{
i_packet_udp_type
=
-
1
;
}
if
(
i_packet_tcp_type
==
MMS_PACKET_CMD
&&
if
(
i_packet_tcp_type
==
MMS_PACKET_CMD
&&
p_access
->
i_command
==
0x1b
)
p_access
->
i_command
==
0x1b
)
...
...
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