Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[rbp/omx] fixed propper lock/unlock in omclock #2013

Merged
merged 1 commit into from

3 participants

@stupid-boy

Lock/UnLock synchronization in OMXClock.cpp.
Later i can provide guard-ed lock/unlock in OMXClock.* and OMXCore.*.

@huceke
Collaborator

Please corrcect your commit message to something like : "[rbp/omx] fixed propper lock/unlock in omclock"

thx

@davilla davilla merged commit 1a39106 into xbmc:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 2, 2013
  1. @stupid-boy
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 xbmc/linux/OMXClock.cpp
View
6 xbmc/linux/OMXClock.cpp
@@ -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;
}
Something went wrong with that request. Please try again.