Skip to content

Commit

Permalink
dvdplayer: add missing lock to message queue
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Sep 15, 2014
1 parent 68ef36a commit 07447b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/cores/dvdplayer/DVDMessageQueue.cpp
Expand Up @@ -249,6 +249,8 @@ void CDVDMessageQueue::WaitUntilEmpty()

int CDVDMessageQueue::GetLevel() const
{
CSingleLock lock(m_section);

if(m_iDataSize > m_iMaxDataSize)
return 100;
if(m_iDataSize == 0)
Expand All @@ -262,6 +264,8 @@ int CDVDMessageQueue::GetLevel() const

int CDVDMessageQueue::GetTimeSize() const
{
CSingleLock lock(m_section);

if(IsDataBased())
return 0;
else
Expand Down

0 comments on commit 07447b2

Please sign in to comment.