Permalink
Browse files

Lock/UnLock synchronization

  • Loading branch information...
1 parent c0320c2 commit a2db346422397cad12da1a44c0bc8209ee271b21 @stupid-boy stupid-boy committed Jan 2, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 xbmc/linux/OMXClock.cpp
View
@@ -334,7 +334,8 @@ bool OMXClock::OMXSetReferenceClock(bool lock /* = true */)
ret = false;
}
- UnLock();
+ if(lock)
+ UnLock();
return ret;
}
@@ -634,7 +635,8 @@ bool OMXClock::OMXReset(bool lock /* = true */)
if(!OMXSetReferenceClock(false))
{
- UnLock();
+ if(lock)
+ UnLock();
return false;
}

0 comments on commit a2db346

Please sign in to comment.