Commit ff5a7721 authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: read skips bytes when p_read is NULL

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent c9186e33
......@@ -103,7 +103,11 @@ int BlockBuffer::get (void *p_data, unsigned int len)
this->reduceBufferMilliSec(ret);
if(p_data == NULL)
block_SkipBytes(&this->buffer, ret);
else
block_GetBytes(&this->buffer, (uint8_t *)p_data, ret);
block_BytestreamFlush(&this->buffer);
this->notify();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment