1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine kernel buffer. complete the utest for buffer.

This commit is contained in:
winlin 2014-06-07 22:23:17 +08:00
parent 8992e217a9
commit 94cf0c1069
15 changed files with 218 additions and 37 deletions

View file

@ -60,7 +60,7 @@ void SrsBuffer::erase(int size)
{
srs_assert(size > 0);
if (size == length()) {
if (size >= length()) {
data.clear();
return;
}