Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
22f98ac1
Commit
22f98ac1
authored
Aug 09, 2018
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: Check for EINTR in ff_poll_interrupt
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
c194b9ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
network.c
libavformat/network.c
+6
-3
No files found.
libavformat/network.c
View file @
22f98ac1
...
...
@@ -131,14 +131,17 @@ static int ff_poll_interrupt(struct pollfd *p, nfds_t nfds, int timeout,
if
(
ff_check_interrupt
(
cb
))
return
AVERROR_EXIT
;
ret
=
poll
(
p
,
nfds
,
POLLING_TIME
);
if
(
ret
!=
0
)
if
(
ret
!=
0
)
{
if
(
ret
<
0
)
ret
=
ff_neterrno
();
if
(
ret
==
AVERROR
(
EINTR
))
continue
;
break
;
}
}
while
(
timeout
<
0
||
runs
--
>
0
);
if
(
!
ret
)
return
AVERROR
(
ETIMEDOUT
);
if
(
ret
<
0
)
return
ff_neterrno
();
return
ret
;
}
...
...
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