- fix for access violation
This commit is contained in:
parent
59e512175a
commit
8fe79459d5
|
|
@ -127,7 +127,7 @@ BufferQueue::Block BufferQueue::pull(std::chrono::milliseconds timeout)
|
||||||
status = mSignal.wait_for(l, timeout);
|
status = mSignal.wait_for(l, timeout);
|
||||||
|
|
||||||
Block r;
|
Block r;
|
||||||
if (status == std::cv_status::no_timeout)
|
if (status == std::cv_status::no_timeout && !mBlockList.empty())
|
||||||
{
|
{
|
||||||
r = mBlockList.front();
|
r = mBlockList.front();
|
||||||
mBlockList.erase(mBlockList.begin());
|
mBlockList.erase(mBlockList.begin());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue