Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9890023d
Commit
9890023d
authored
Jul 27, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* forwardport [11877]
parent
a227eaa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+10
-5
No files found.
modules/access/mms/mmstu.c
View file @
9890023d
...
...
@@ -947,16 +947,18 @@ static void MMSClose( access_t *p_access )
static
int
mms_CommandSend
(
access_t
*
p_access
,
int
i_command
,
uint32_t
i_prefix1
,
uint32_t
i_prefix2
,
uint8_t
*
p_data
,
int
i_data
)
uint8_t
*
p_data
,
int
i_data
_old
)
{
var_buffer_t
buffer
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
int
i_data_by8
;
int
i_data
=
i_data_old
;
i_data_by8
=
(
i_data
+
7
)
/
8
;
while
(
i_data
&
0x7
)
i_data
++
;
i_data_by8
=
i_data
>>
3
;
/* first init uffer */
/* first init
b
uffer */
var_buffer_initwrite
(
&
buffer
,
0
);
var_buffer_add32
(
&
buffer
,
0x00000001
);
/* start sequence */
...
...
@@ -975,13 +977,16 @@ static int mms_CommandSend( access_t *p_access,
/* specific command data */
if
(
p_data
&&
i_data
>
0
)
{
var_buffer_addmemory
(
&
buffer
,
p_data
,
i_data
);
var_buffer_addmemory
(
&
buffer
,
p_data
,
i_data
_old
);
}
/* Append padding to the command data */
var_buffer_add64
(
&
buffer
,
0
);
/* send it */
if
(
send
(
p_sys
->
i_handle_tcp
,
buffer
.
p_data
,
buffer
.
i_data
,
buffer
.
i_data
-
(
8
-
(
i_data
-
i_data_old
)
)
,
0
)
==
-
1
)
{
msg_Err
(
p_access
,
"failed to send command"
);
...
...
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