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
56649e7c
Commit
56649e7c
authored
Sep 12, 2006
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/network/io.c: zorglub: gnagnagna ! :)
(fixed more coding style, and resolved a conflict I introduced)
parent
359367c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/network/io.c
src/network/io.c
+13
-13
No files found.
src/network/io.c
View file @
56649e7c
...
...
@@ -180,10 +180,10 @@ net_ReadInner( vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
for
(
i
=
0
;
n
>
0
;
i
++
)
{
if
((
total
>
0
)
&&
(
ufd
[
i
].
revents
&
POLLERR
)
)
return
total
;
// error will be dequeued on next run
if
(
(
i_total
>
0
)
&&
(
ufd
[
i
].
revents
&
POLLERR
)
)
return
i_
total
;
// error will be dequeued on next run
if
(
ufd
[
i
].
revents
)
if
(
ufd
[
i
].
revents
)
{
fdc
=
1
;
fdv
+=
i
;
...
...
@@ -289,7 +289,7 @@ receive:
error:
msg_Err
(
p_this
,
"Read error: %s"
,
net_strerror
(
net_errno
)
);
return
total
?
(
int
)
total
:
-
1
;
return
i_total
?
(
int
)
i_
total
:
-
1
;
}
...
...
@@ -354,12 +354,12 @@ int __net_Select( vlc_object_t *restrict p_this, const int *restrict pi_fd,
int
__net_Write
(
vlc_object_t
*
p_this
,
int
fd
,
const
v_socket_t
*
p_vs
,
const
uint8_t
*
p_data
,
int
i_data
)
{
size_t
total
=
0
;
size_t
i_
total
=
0
;
while
(
i_data
>
0
)
{
if
(
p_this
->
b_die
)
return
total
;
return
i_
total
;
#ifdef HAVE_POLL
struct
pollfd
ufd
[
1
];
...
...
@@ -368,8 +368,8 @@ int __net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
ufd
[
0
].
events
=
POLLOUT
;
int
val
=
poll
(
ufd
,
1
,
500
);
if
((
val
>
0
)
&&
(
ufd
[
0
].
revents
&
POLLERR
)
&&
(
total
>
0
))
return
total
;
// error will be dequeued separately on next call
if
((
val
>
0
)
&&
(
ufd
[
0
].
revents
&
POLLERR
)
&&
(
i_
total
>
0
))
return
i_
total
;
// error will be dequeued separately on next call
#else
fd_set
set
;
FD_ZERO
(
&
set
);
...
...
@@ -394,7 +394,7 @@ int __net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
{
msg_Err
(
p_this
,
"Write error: %s"
,
net_strerror
(
net_errno
));
return
total
?
(
int
)
total
:
-
1
;
return
i_total
?
(
int
)
i_
total
:
-
1
;
}
case
0
:
...
...
@@ -411,16 +411,16 @@ int __net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
#endif
if
(
val
==
-
1
)
return
total
?
(
int
)
total
:
-
1
;
return
i_total
?
(
int
)
i_
total
:
-
1
;
if
(
val
==
0
)
return
total
;
return
i_
total
;
p_data
+=
val
;
i_data
-=
val
;
total
+=
val
;
i_
total
+=
val
;
}
return
total
;
return
i_
total
;
}
char
*
__net_Gets
(
vlc_object_t
*
p_this
,
int
fd
,
const
v_socket_t
*
p_vs
)
...
...
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