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
b336d67d
Commit
b336d67d
authored
Mar 15, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mms: some clean up.
parent
f0789fcd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
22 deletions
+32
-22
modules/access/mms/mms.c
modules/access/mms/mms.c
+32
-22
No files found.
modules/access/mms/mms.c
View file @
b336d67d
...
@@ -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
3 2003/03/11 18:14:27
fenrir Exp $
* $Id: mms.c,v 1.2
4 2003/03/15 02:33:23
fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -1574,6 +1574,7 @@ static int mms_ParseCommand( input_thread_t *p_input,
...
@@ -1574,6 +1574,7 @@ static int mms_ParseCommand( input_thread_t *p_input,
{
{
msg_Warn
(
p_input
,
"truncated command (header incomplete)"
);
msg_Warn
(
p_input
,
"truncated command (header incomplete)"
);
p_access
->
i_command
=
0
;
p_access
->
i_command
=
0
;
*
pi_used
=
0
;
return
(
-
1
);
return
(
-
1
);
}
}
i_id
=
GetDWLE
(
p_data
+
4
);
i_id
=
GetDWLE
(
p_data
+
4
);
...
@@ -1593,6 +1594,7 @@ static int mms_ParseCommand( input_thread_t *p_input,
...
@@ -1593,6 +1594,7 @@ static int mms_ParseCommand( input_thread_t *p_input,
"truncated command (missing %d bytes)"
,
"truncated command (missing %d bytes)"
,
i_length
-
i_data
);
i_length
-
i_data
);
p_access
->
i_command
=
0
;
p_access
->
i_command
=
0
;
*
pi_used
=
0
;
return
(
-
1
);
return
(
-
1
);
}
}
else
if
(
i_length
<
p_access
->
i_cmd
)
else
if
(
i_length
<
p_access
->
i_cmd
)
...
@@ -1638,6 +1640,7 @@ static int mms_ParsePacket( input_thread_t *p_input,
...
@@ -1638,6 +1640,7 @@ static int mms_ParsePacket( input_thread_t *p_input,
if
(
i_data
<=
8
)
if
(
i_data
<=
8
)
{
{
msg_Warn
(
p_input
,
"truncated packet (header incomplete)"
);
msg_Warn
(
p_input
,
"truncated packet (header incomplete)"
);
*
pi_used
=
0
;
return
(
-
1
);
return
(
-
1
);
}
}
...
@@ -1836,8 +1839,14 @@ static int mms_ReceiveCommand( input_thread_t *p_input )
...
@@ -1836,8 +1839,14 @@ static int mms_ReceiveCommand( input_thread_t *p_input )
{
{
int
i_used
;
int
i_used
;
int
i_status
;
int
i_status
;
NetFillBuffer
(
p_input
);
if
(
NetFillBuffer
(
p_input
)
<
0
)
{
msg_Warn
(
p_input
,
"cannot fill buffer"
);
continue
;
}
if
(
p_access
->
i_buffer_tcp
>
0
)
{
i_status
=
mms_ParseCommand
(
p_input
,
i_status
=
mms_ParseCommand
(
p_input
,
p_access
->
buffer_tcp
,
p_access
->
buffer_tcp
,
p_access
->
i_buffer_tcp
,
p_access
->
i_buffer_tcp
,
...
@@ -1864,6 +1873,7 @@ static int mms_ReceiveCommand( input_thread_t *p_input )
...
@@ -1864,6 +1873,7 @@ static int mms_ReceiveCommand( input_thread_t *p_input )
break
;
break
;
}
}
}
}
}
return
(
0
);
return
(
0
);
}
}
...
...
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