[vlc-commits] dash: BlockBuffer: Simplifications

Hugo Beauzée-Luyssen git at videolan.org
Wed May 30 12:08:23 CEST 2012


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed May 30 10:42:40 2012 +0200| [3db33d99ac97b75783e4af77555bb767927a5469] | committer: Hugo Beauzée-Luyssen

dash: BlockBuffer: Simplifications

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3db33d99ac97b75783e4af77555bb767927a5469
---

 modules/stream_filter/dash/buffer/BlockBuffer.cpp |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/stream_filter/dash/buffer/BlockBuffer.cpp b/modules/stream_filter/dash/buffer/BlockBuffer.cpp
index 1408ce6..ae9f8d0 100644
--- a/modules/stream_filter/dash/buffer/BlockBuffer.cpp
+++ b/modules/stream_filter/dash/buffer/BlockBuffer.cpp
@@ -162,10 +162,9 @@ void    BlockBuffer::setEOF               (bool value)
 }
 bool    BlockBuffer::getEOF               ()
 {
-    vlc_mutex_lock(&this->monitorMutex);
-    bool ret = this->isEOF;
-    vlc_mutex_unlock(&this->monitorMutex);
-    return ret;
+    vlc_mutex_locker    lock(&this->monitorMutex);
+
+    return this->isEOF;
 }
 void    BlockBuffer::attach               (IBufferObserver *observer)
 {



More information about the vlc-commits mailing list