summaryrefslogtreecommitdiff
path: root/dxr3nextpts.h
diff options
context:
space:
mode:
authorscop <scop>2005-04-18 19:26:16 +0000
committerscop <scop>2005-04-18 19:26:16 +0000
commitf8a3d81fc0b548a0f76e205fee433e4c94a4ee57 (patch)
tree2f69513d7d57e15b920c8eb4bb4b4a877d5b0881 /dxr3nextpts.h
parent37c4c7b0a4a388d6c933e95756ddd30dd0cca6fd (diff)
downloadvdr-plugin-dxr3-f8a3d81fc0b548a0f76e205fee433e4c94a4ee57.tar.gz
vdr-plugin-dxr3-f8a3d81fc0b548a0f76e205fee433e4c94a4ee57.tar.bz2
Oops, wrong tree... revert.
Diffstat (limited to 'dxr3nextpts.h')
-rw-r--r--dxr3nextpts.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/dxr3nextpts.h b/dxr3nextpts.h
index 6fd0a38..64fe8eb 100644
--- a/dxr3nextpts.h
+++ b/dxr3nextpts.h
@@ -32,24 +32,24 @@
// damit wird ermittelt welches audio frame zu welchem bild gehört
class cDxr3NextPts : public Singleton<cDxr3NextPts>
{
- public:
- cDxr3NextPts() {}
- ~cDxr3NextPts() {}
+public:
+ cDxr3NextPts() {}
+ ~cDxr3NextPts() {}
- void SetNextPts(uint32_t pts) { Lock(); if (pts) m_nextPts = pts; Unlock(); }
- uint32_t GetNextPts() { Lock(); uint32_t tmpPts = m_nextPts; Unlock(); return tmpPts;}
+ void SetNextPts(uint32_t pts) { Lock(); if (pts) m_nextPts = pts; Unlock(); }
+ uint32_t GetNextPts() { Lock(); uint32_t tmpPts = m_nextPts; Unlock(); return tmpPts;}
- void Clear() { Lock(); m_nextPts = 0; Unlock();}
+ void Clear() { Lock(); m_nextPts = 0; Unlock();}
- protected:
- static cMutex* m_pMutex;
- uint32_t m_nextPts;
+protected:
+ static cMutex* m_pMutex;
+ uint32_t m_nextPts;
- static void Lock() {cDxr3NextPts::m_pMutex->Lock();}
- static void Unlock() {cDxr3NextPts::m_pMutex->Unlock();}
+ static void Lock() {cDxr3NextPts::m_pMutex->Lock();}
+ static void Unlock() {cDxr3NextPts::m_pMutex->Unlock();}
- private:
- cDxr3NextPts(cDxr3NextPts&); // no copy constructor
+private:
+ cDxr3NextPts(cDxr3NextPts&); // no copy constructor
};
#endif /*_DXR3NEXTPTS_H_*/