Skip to content

Commit

Permalink
Merge pull request #2013 from stupid-boy/master
Browse files Browse the repository at this point in the history
[rbp/omx] fixed propper lock/unlock in omclock
  • Loading branch information
davilla committed Jan 2, 2013
2 parents ffa3e48 + a2db346 commit 1a39106
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xbmc/linux/OMXClock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ bool OMXClock::OMXSetReferenceClock(bool lock /* = true */)
ret = false;
}

UnLock();
if(lock)
UnLock();

return ret;
}
Expand Down Expand Up @@ -634,7 +635,8 @@ bool OMXClock::OMXReset(bool lock /* = true */)

if(!OMXSetReferenceClock(false))
{
UnLock();
if(lock)
UnLock();
return false;
}

Expand Down

0 comments on commit 1a39106

Please sign in to comment.