Fixed RTMP analyser printing errors when there were no real errors, at end of stream.
This commit is contained in:
		
							parent
							
								
									05d3375412
								
							
						
					
					
						commit
						6dfe97a9c2
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -183,8 +183,11 @@ namespace Analysers { | ||||||
|         } //switch for type of chunk
 |         } //switch for type of chunk
 | ||||||
|       }else{ //if chunk parsed
 |       }else{ //if chunk parsed
 | ||||||
|         if (std::cin.good()){ |         if (std::cin.good()){ | ||||||
|           inbuffer += std::cin.get(); |           char newchar = std::cin.get(); | ||||||
|           ++read_in; |           if (std::cin.good()){ | ||||||
|  |             inbuffer += newchar; | ||||||
|  |             ++read_in; | ||||||
|  |           } | ||||||
|         }else{ |         }else{ | ||||||
|           inbuffer.clear(); |           inbuffer.clear(); | ||||||
|         } |         } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma