Commit 3db33d99 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dash: BlockBuffer: Simplifications

parent ea61bf32
...@@ -162,10 +162,9 @@ void BlockBuffer::setEOF (bool value) ...@@ -162,10 +162,9 @@ void BlockBuffer::setEOF (bool value)
} }
bool BlockBuffer::getEOF () bool BlockBuffer::getEOF ()
{ {
vlc_mutex_lock(&this->monitorMutex); vlc_mutex_locker lock(&this->monitorMutex);
bool ret = this->isEOF;
vlc_mutex_unlock(&this->monitorMutex); return this->isEOF;
return ret;
} }
void BlockBuffer::attach (IBufferObserver *observer) void BlockBuffer::attach (IBufferObserver *observer)
{ {
......
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