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
0a8ff1d8
Commit
0a8ff1d8
authored
Aug 05, 2018
by
Jun Zhao
Committed by
Jun Zhao
Aug 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/network: check return value of setsockopt.
Signed-off-by:
Jun Zhao
<
mypopydev@gmail.com
>
parent
d428ef0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
network.c
libavformat/network.c
+5
-2
No files found.
libavformat/network.c
View file @
0a8ff1d8
...
...
@@ -194,8 +194,11 @@ int ff_socket(int af, int type, int proto)
#endif
}
#ifdef SO_NOSIGPIPE
if
(
fd
!=
-
1
)
setsockopt
(
fd
,
SOL_SOCKET
,
SO_NOSIGPIPE
,
&
(
int
){
1
},
sizeof
(
int
));
if
(
fd
!=
-
1
)
{
if
(
setsockopt
(
fd
,
SOL_SOCKET
,
SO_NOSIGPIPE
,
&
(
int
){
1
},
sizeof
(
int
)))
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"setsockopt(SO_NOSIGPIPE) failed
\n
"
);
}
}
#endif
return
fd
;
}
...
...
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