Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e9c23e95
Commit
e9c23e95
authored
Jan 18, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: wake up select every split tenth of seconds (fix #1949)
parent
700b2282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
src/network/poll.c
src/network/poll.c
+24
-0
No files found.
src/network/poll.c
View file @
e9c23e95
...
...
@@ -85,6 +85,18 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
FD_SET
(
fd
,
&
exset
);
}
#ifndef HAVE_ALERTABLE_SELECT
# warning FIXME! Fix cancellation and remove this crap.
resume:
vlc_testcancel
();
if
((
timeout
<
0
)
||
(
timeout
>
50
))
{
tv
.
tv_sec
=
0
;
tv
.
tv_usec
=
50
;
}
else
#endif
if
(
timeout
>=
0
)
{
div_t
d
=
div
(
timeout
,
1000
);
...
...
@@ -94,6 +106,18 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
val
=
select
(
val
+
1
,
&
rdset
,
&
wrset
,
&
exset
,
(
timeout
>=
0
)
?
&
tv
:
NULL
);
#ifndef HAVE_ALERTABLE_SELECT
# warning FIXME! Fix cancellation and remove this crap.
if
(
val
==
0
)
{
if
(
timeout
>
0
)
timeout
-=
(
timeout
>
50
)
?
50
:
timeout
;
if
(
timeout
!=
0
)
goto
resume
;
}
#endif
if
(
val
==
-
1
)
return
-
1
;
...
...
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