[FFmpeg-cvslog] ffmpeg: fix indent in term_init().

Clément Bœsch git at videolan.org
Fri May 4 19:22:49 CEST 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri May  4 19:21:31 2012 +0200| [9e6a1c8981bffcb5401f60b3eec6c65b6e846a52] | committer: Clément Bœsch

ffmpeg: fix indent in term_init().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e6a1c8981bffcb5401f60b3eec6c65b6e846a52
---

 ffmpeg.c |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 1b2d345..896dcc0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1073,25 +1073,25 @@ static void term_init(void)
 {
 #if HAVE_TERMIOS_H
     if(!run_as_daemon){
-    struct termios tty;
+        struct termios tty;
 
-    if (tcgetattr (0, &tty) == 0) {
-    oldtty = tty;
-    restore_tty = 1;
-    atexit(term_exit);
+        if (tcgetattr (0, &tty) == 0) {
+            oldtty = tty;
+            restore_tty = 1;
+            atexit(term_exit);
 
-    tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP
-                          |INLCR|IGNCR|ICRNL|IXON);
-    tty.c_oflag |= OPOST;
-    tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN);
-    tty.c_cflag &= ~(CSIZE|PARENB);
-    tty.c_cflag |= CS8;
-    tty.c_cc[VMIN] = 1;
-    tty.c_cc[VTIME] = 0;
+            tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP
+                             |INLCR|IGNCR|ICRNL|IXON);
+            tty.c_oflag |= OPOST;
+            tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN);
+            tty.c_cflag &= ~(CSIZE|PARENB);
+            tty.c_cflag |= CS8;
+            tty.c_cc[VMIN] = 1;
+            tty.c_cc[VTIME] = 0;
 
-    tcsetattr (0, TCSANOW, &tty);
-    }
-    signal(SIGQUIT, sigterm_handler); /* Quit (POSIX).  */
+            tcsetattr (0, TCSANOW, &tty);
+        }
+        signal(SIGQUIT, sigterm_handler); /* Quit (POSIX).  */
     }
 #endif
     avformat_network_deinit();



More information about the ffmpeg-cvslog mailing list