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
3c483620
Commit
3c483620
authored
Apr 22, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics: Rename variable daemon as run_as_daemon.
daemon() is defined in unistd.h for BSD and Cygwin.
parent
07f45bc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ffmpeg.c
ffmpeg.c
+5
-5
No files found.
ffmpeg.c
View file @
3c483620
...
...
@@ -233,7 +233,7 @@ static int audio_volume = 256;
static
int
exit_on_error
=
0
;
static
int
using_stdin
=
0
;
static
int
verbose
=
1
;
static
int
daemon
=
0
;
static
int
run_as_
daemon
=
0
;
static
int
thread_count
=
1
;
static
int
q_pressed
=
0
;
static
int64_t
video_size
=
0
;
...
...
@@ -439,7 +439,7 @@ static void term_exit(void)
{
av_log
(
NULL
,
AV_LOG_QUIET
,
""
);
#if HAVE_TERMIOS_H
if
(
!
daemon
)
if
(
!
run_as_
daemon
)
tcsetattr
(
0
,
TCSANOW
,
&
oldtty
);
#endif
}
...
...
@@ -457,7 +457,7 @@ sigterm_handler(int sig)
static
void
term_init
(
void
)
{
#if HAVE_TERMIOS_H
if
(
!
daemon
){
if
(
!
run_as_
daemon
){
struct
termios
tty
;
tcgetattr
(
0
,
&
tty
);
...
...
@@ -494,7 +494,7 @@ static int read_key(void)
struct
timeval
tv
;
fd_set
rfds
;
if
(
daemon
)
if
(
run_as_
daemon
)
return
-
1
;
FD_ZERO
(
&
rfds
);
...
...
@@ -4414,7 +4414,7 @@ int main(int argc, char **argv)
av_log_set_flags
(
AV_LOG_SKIP_REPEATED
);
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"-d"
)){
daemon
=
1
;
run_as_
daemon
=
1
;
verbose
=-
1
;
av_log_set_callback
(
log_callback_null
);
argc
--
;
...
...
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