Fixed RTMP analyser printing errors when there were no real errors, at end of stream.

This commit is contained in:
Thulinma 2014-08-05 14:26:09 +02:00
parent 05d3375412
commit 6dfe97a9c2

View file

@ -183,8 +183,11 @@ namespace Analysers {
} //switch for type of chunk
}else{ //if chunk parsed
if (std::cin.good()){
inbuffer += std::cin.get();
++read_in;
char newchar = std::cin.get();
if (std::cin.good()){
inbuffer += newchar;
++read_in;
}
}else{
inbuffer.clear();
}