Revert "ffmpeg: modify tty state when stderr is redirected"
faults in fate otherwise breaks the terminal. To reproduce, add a abort() into wav_read_header() run make fate-acodec-adpcm-ima_wav This reverts commit 92e62f49cf7440a9e8998d284528e223c0948c97.
This commit is contained in:
		
							parent
							
								
									802e51299e
								
							
						
					
					
						commit
						d2077c860e
					
				
							
								
								
									
										2
									
								
								ffmpeg.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ffmpeg.c
									
									
									
									
									
								
							@ -372,7 +372,7 @@ void term_init(void)
 | 
				
			|||||||
        struct termios tty;
 | 
					        struct termios tty;
 | 
				
			||||||
        int istty = 1;
 | 
					        int istty = 1;
 | 
				
			||||||
#if HAVE_ISATTY
 | 
					#if HAVE_ISATTY
 | 
				
			||||||
        istty = isatty(0);
 | 
					        istty = isatty(0) && isatty(2);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
        if (istty && tcgetattr (0, &tty) == 0) {
 | 
					        if (istty && tcgetattr (0, &tty) == 0) {
 | 
				
			||||||
            oldtty = tty;
 | 
					            oldtty = tty;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user