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
6df9b4ea
Commit
6df9b4ea
authored
Sep 22, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/mms/mmstu.c: use net_Write() instead of send().
parent
56f453f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+8
-11
No files found.
modules/access/mms/mmstu.c
View file @
6df9b4ea
...
@@ -926,15 +926,13 @@ static void MMSClose( access_t *p_access )
...
@@ -926,15 +926,13 @@ static void MMSClose( access_t *p_access )
* MMS specific functions
* MMS specific functions
*
*
****************************************************************************/
****************************************************************************/
static
int
mms_CommandSend
(
access_t
*
p_access
,
static
int
mms_CommandSend
(
access_t
*
p_access
,
int
i_command
,
int
i_command
,
uint32_t
i_prefix1
,
uint32_t
i_prefix2
,
uint32_t
i_prefix1
,
uint32_t
i_prefix2
,
uint8_t
*
p_data
,
int
i_data_old
)
uint8_t
*
p_data
,
int
i_data_old
)
{
{
var_buffer_t
buffer
;
var_buffer_t
buffer
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
int
i_data_by8
;
int
i_data_by8
,
i_ret
;
int
i_data
=
i_data_old
;
int
i_data
=
i_data_old
;
while
(
i_data
&
0x7
)
i_data
++
;
while
(
i_data
&
0x7
)
i_data
++
;
...
@@ -966,10 +964,9 @@ static int mms_CommandSend( access_t *p_access,
...
@@ -966,10 +964,9 @@ static int mms_CommandSend( access_t *p_access,
var_buffer_add64
(
&
buffer
,
0
);
var_buffer_add64
(
&
buffer
,
0
);
/* send it */
/* send it */
if
(
send
(
p_sys
->
i_handle_tcp
,
i_ret
=
net_Write
(
p_access
,
p_sys
->
i_handle_tcp
,
NULL
,
buffer
.
p_data
,
buffer
.
p_data
,
buffer
.
i_data
-
(
8
-
(
i_data
-
i_data_old
)
)
);
buffer
.
i_data
-
(
8
-
(
i_data
-
i_data_old
)
),
if
(
i_ret
!=
buffer
.
i_data
-
(
8
-
(
i_data
-
i_data_old
)
)
)
0
)
==
-
1
)
{
{
msg_Err
(
p_access
,
"failed to send command"
);
msg_Err
(
p_access
,
"failed to send command"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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