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
9e6a1c89
Commit
9e6a1c89
authored
May 04, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: fix indent in term_init().
parent
3c1d52d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
ffmpeg.c
ffmpeg.c
+16
-16
No files found.
ffmpeg.c
View file @
9e6a1c89
...
@@ -1073,25 +1073,25 @@ static void term_init(void)
...
@@ -1073,25 +1073,25 @@ static void term_init(void)
{
{
#if HAVE_TERMIOS_H
#if HAVE_TERMIOS_H
if
(
!
run_as_daemon
){
if
(
!
run_as_daemon
){
struct
termios
tty
;
struct
termios
tty
;
if
(
tcgetattr
(
0
,
&
tty
)
==
0
)
{
if
(
tcgetattr
(
0
,
&
tty
)
==
0
)
{
oldtty
=
tty
;
oldtty
=
tty
;
restore_tty
=
1
;
restore_tty
=
1
;
atexit
(
term_exit
);
atexit
(
term_exit
);
tty
.
c_iflag
&=
~
(
IGNBRK
|
BRKINT
|
PARMRK
|
ISTRIP
tty
.
c_iflag
&=
~
(
IGNBRK
|
BRKINT
|
PARMRK
|
ISTRIP
|
INLCR
|
IGNCR
|
ICRNL
|
IXON
);
|
INLCR
|
IGNCR
|
ICRNL
|
IXON
);
tty
.
c_oflag
|=
OPOST
;
tty
.
c_oflag
|=
OPOST
;
tty
.
c_lflag
&=
~
(
ECHO
|
ECHONL
|
ICANON
|
IEXTEN
);
tty
.
c_lflag
&=
~
(
ECHO
|
ECHONL
|
ICANON
|
IEXTEN
);
tty
.
c_cflag
&=
~
(
CSIZE
|
PARENB
);
tty
.
c_cflag
&=
~
(
CSIZE
|
PARENB
);
tty
.
c_cflag
|=
CS8
;
tty
.
c_cflag
|=
CS8
;
tty
.
c_cc
[
VMIN
]
=
1
;
tty
.
c_cc
[
VMIN
]
=
1
;
tty
.
c_cc
[
VTIME
]
=
0
;
tty
.
c_cc
[
VTIME
]
=
0
;
tcsetattr
(
0
,
TCSANOW
,
&
tty
);
tcsetattr
(
0
,
TCSANOW
,
&
tty
);
}
}
signal
(
SIGQUIT
,
sigterm_handler
);
/* Quit (POSIX). */
signal
(
SIGQUIT
,
sigterm_handler
);
/* Quit (POSIX). */
}
}
#endif
#endif
avformat_network_deinit
();
avformat_network_deinit
();
...
...
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