Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
3e2e29fb
Commit
3e2e29fb
authored
17 years ago
by
Alex Beregszaszi
Browse files
Options
Downloads
Patches
Plain Diff
r9095 invalidly removed the check for non-winsock
Originally committed as revision 9096 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7235183d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavformat/os_support.c
+8
-0
8 additions, 0 deletions
libavformat/os_support.c
with
8 additions
and
0 deletions
libavformat/os_support.c
+
8
−
0
View file @
3e2e29fb
...
@@ -139,10 +139,12 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
...
@@ -139,10 +139,12 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
int
n
;
int
n
;
int
rc
;
int
rc
;
#ifdef __MINGW32__
if
(
numfds
>=
FD_SETSIZE
)
{
if
(
numfds
>=
FD_SETSIZE
)
{
errno
=
EINVAL
;
errno
=
EINVAL
;
return
-
1
;
return
-
1
;
}
}
#endif
FD_ZERO
(
&
read_set
);
FD_ZERO
(
&
read_set
);
FD_ZERO
(
&
write_set
);
FD_ZERO
(
&
write_set
);
...
@@ -152,6 +154,12 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
...
@@ -152,6 +154,12 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
for
(
i
=
0
;
i
<
numfds
;
i
++
)
{
for
(
i
=
0
;
i
<
numfds
;
i
++
)
{
if
(
fds
[
i
].
fd
<
0
)
if
(
fds
[
i
].
fd
<
0
)
continue
;
continue
;
#ifndef __MINGW32__
if
(
fds
[
i
].
fd
>=
FD_SETSIZE
)
{
errno
=
EINVAL
;
return
-
1
;
}
#endif
if
(
fds
[
i
].
events
&
POLLIN
)
FD_SET
(
fds
[
i
].
fd
,
&
read_set
);
if
(
fds
[
i
].
events
&
POLLIN
)
FD_SET
(
fds
[
i
].
fd
,
&
read_set
);
if
(
fds
[
i
].
events
&
POLLOUT
)
FD_SET
(
fds
[
i
].
fd
,
&
write_set
);
if
(
fds
[
i
].
events
&
POLLOUT
)
FD_SET
(
fds
[
i
].
fd
,
&
write_set
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment