*-exec: inputs now correctly throw away stderr, preventing ffmpeg lockups
This commit is contained in:
		
							parent
							
								
									a084005644
								
							
						
					
					
						commit
						55854883c8
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -42,8 +42,8 @@ namespace Mist{
 | 
			
		|||
      }
 | 
			
		||||
      args[argCnt] = 0;
 | 
			
		||||
 | 
			
		||||
      int fin = -1, fout = -1, ferr = -1;
 | 
			
		||||
      inputProcess = Util::Procs::StartPiped(args, &fin, &fout, &ferr);
 | 
			
		||||
      int fin = -1, fout = -1;
 | 
			
		||||
      inputProcess = Util::Procs::StartPiped(args, &fin, &fout, 0);
 | 
			
		||||
      myConn = Socket::Connection(-1, fout);
 | 
			
		||||
    }else{
 | 
			
		||||
      myConn = Socket::Connection(fileno(stdout), fileno(stdin));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -208,8 +208,8 @@ namespace Mist {
 | 
			
		|||
      }
 | 
			
		||||
      args[argCnt] = 0;
 | 
			
		||||
 | 
			
		||||
      int fin = -1, fout = -1, ferr = -1;
 | 
			
		||||
      inputProcess = Util::Procs::StartPiped(args, &fin, &fout, &ferr);
 | 
			
		||||
      int fin = -1, fout = -1;
 | 
			
		||||
      inputProcess = Util::Procs::StartPiped(args, &fin, &fout, 0);
 | 
			
		||||
      tcpCon = Socket::Connection(-1, fout);
 | 
			
		||||
      return true;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue