1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-15 11:28:55 +02:00

ffmpeg: fix indent in term_init().

This commit is contained in:
Clément Bœsch 2012-05-04 19:21:31 +02:00
parent 3c1d52d30b
commit 9e6a1c8981

View File

@ -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();