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
04702a0d
Commit
04702a0d
authored
Nov 28, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffserver: add some error handling to main()
parent
3adb8256
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ffserver.c
ffserver.c
+4
-2
No files found.
ffserver.c
View file @
04702a0d
...
...
@@ -4679,6 +4679,7 @@ static const OptionDef options[] = {
int
main
(
int
argc
,
char
**
argv
)
{
struct
sigaction
sigact
=
{
{
0
}
};
int
ret
=
0
;
config_filename
=
av_strdup
(
"/etc/ffserver.conf"
);
...
...
@@ -4700,8 +4701,9 @@ int main(int argc, char **argv)
sigact
.
sa_flags
=
SA_NOCLDSTOP
|
SA_RESTART
;
sigaction
(
SIGCHLD
,
&
sigact
,
0
);
if
(
parse_ffconfig
(
config_filename
)
<
0
)
{
fprintf
(
stderr
,
"Incorrect config file - exiting.
\n
"
);
if
((
ret
=
parse_ffconfig
(
config_filename
))
<
0
)
{
fprintf
(
stderr
,
"Error reading configuration file '%s': %s
\n
"
,
config_filename
,
av_err2str
(
ret
));
exit
(
1
);
}
av_freep
(
&
config_filename
);
...
...
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