Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
60cc18a0
Commit
60cc18a0
authored
Jan 18, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32 old crappy poll replacement: misc fixes
parent
f5574a64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/network/poll.c
src/network/poll.c
+7
-7
No files found.
src/network/poll.c
View file @
60cc18a0
...
@@ -46,7 +46,11 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
...
@@ -46,7 +46,11 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
{
{
fd_set
rdset
,
wrset
,
exset
;
fd_set
rdset
,
wrset
,
exset
;
struct
timeval
tv
=
{
0
,
0
};
struct
timeval
tv
=
{
0
,
0
};
int
val
=
-
1
;
int
val
;
resume:
val
=
-
1
;
vlc_testcancel
();
FD_ZERO
(
&
rdset
);
FD_ZERO
(
&
rdset
);
FD_ZERO
(
&
wrset
);
FD_ZERO
(
&
wrset
);
...
@@ -87,13 +91,10 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
...
@@ -87,13 +91,10 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
#ifndef HAVE_ALERTABLE_SELECT
#ifndef HAVE_ALERTABLE_SELECT
# warning FIXME! Fix cancellation and remove this crap.
# warning FIXME! Fix cancellation and remove this crap.
resume:
vlc_testcancel
();
if
((
timeout
<
0
)
||
(
timeout
>
50
))
if
((
timeout
<
0
)
||
(
timeout
>
50
))
{
{
tv
.
tv_sec
=
0
;
tv
.
tv_sec
=
0
;
tv
.
tv_usec
=
50
;
tv
.
tv_usec
=
50
000
;
}
}
else
else
#endif
#endif
...
@@ -105,10 +106,9 @@ resume:
...
@@ -105,10 +106,9 @@ resume:
}
}
val
=
select
(
val
+
1
,
&
rdset
,
&
wrset
,
&
exset
,
val
=
select
(
val
+
1
,
&
rdset
,
&
wrset
,
&
exset
,
(
timeout
>=
0
)
?
&
tv
:
NULL
);
/*(timeout >= 0) ?*/
&
tv
/*: NULL*/
);
#ifndef HAVE_ALERTABLE_SELECT
#ifndef HAVE_ALERTABLE_SELECT
# warning FIXME! Fix cancellation and remove this crap.
if
(
val
==
0
)
if
(
val
==
0
)
{
{
if
(
timeout
>
0
)
if
(
timeout
>
0
)
...
...
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