mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-11 18:37:28 -04:00
More debug in read_into
This commit is contained in:
@@ -65,8 +65,9 @@ unsigned int Buffer::expand(unsigned int count) {
|
||||
int Buffer::read_into(int sd, unsigned int bytes) {
|
||||
// Make sure there is enough space
|
||||
this->expand(bytes);
|
||||
int bytes_read = read(sd, mTail, bytes);
|
||||
if ( bytes_read > 0 ) {
|
||||
Debug(3, "Reading %u btes", bytes);
|
||||
int bytes_read = ::read(sd, mTail, bytes);
|
||||
if (bytes_read > 0) {
|
||||
mTail += bytes_read;
|
||||
mSize += bytes_read;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user