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
f10b0025
Commit
f10b0025
authored
Sep 08, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
parent
c07085a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
src/network/io.c
src/network/io.c
+12
-9
No files found.
src/network/io.c
View file @
f10b0025
...
...
@@ -144,17 +144,12 @@ net_ReadInner( vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
do
{
if
(
waitall
&&
(
buflen
==
0
)
)
if
(
buflen
==
0
)
return
total
;
// output buffer full
int
delay_ms
;
if
(
wait_ms
!=
-
1
)
{
delay_ms
=
(
wait_ms
>
500
)
?
500
:
wait_ms
;
wait_ms
-=
delay_ms
;
}
else
delay_ms
=
500
;
int
delay_ms
=
500
;
if
((
wait_ms
!=
-
1
)
&&
(
wait_ms
<
500
))
delay_ms
=
wait_ms
;
#ifdef HAVE_POLL
struct
pollfd
ufd
[
fdc
];
...
...
@@ -258,6 +253,14 @@ receive:
total
+=
n
;
buf
+=
n
;
buflen
-=
n
;
if
(
wait_ms
==
-
1
)
{
if
(
!
waitall
)
return
total
;
}
else
wait_ms
-=
delay_ms
;
}
while
(
wait_ms
);
...
...
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