diff options
author | scop <scop> | 2005-04-18 19:17:40 +0000 |
---|---|---|
committer | scop <scop> | 2005-04-18 19:17:40 +0000 |
commit | 37c4c7b0a4a388d6c933e95756ddd30dd0cca6fd (patch) | |
tree | 273ceb29e8631796f83b88e3a133dbab4ccbe2c7 /dxr3sysclock.c | |
parent | 4d4c6bb89da5b1cc3eff554412ea834337308cd5 (diff) | |
download | vdr-plugin-dxr3-37c4c7b0a4a388d6c933e95756ddd30dd0cca6fd.tar.gz vdr-plugin-dxr3-37c4c7b0a4a388d6c933e95756ddd30dd0cca6fd.tar.bz2 |
Add (X)Emacs indentation settings.
Diffstat (limited to 'dxr3sysclock.c')
-rw-r--r-- | dxr3sysclock.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/dxr3sysclock.c b/dxr3sysclock.c index 8c32948..5eccb5c 100644 --- a/dxr3sysclock.c +++ b/dxr3sysclock.c @@ -25,46 +25,46 @@ // ================================== void cDxr3SysClock::SetSysClock(uint32_t scr) { - uint32_t sc; + uint32_t sc; - mutex.Lock(); - ioctl(m_fdcontrol, EM8300_IOCTL_SCR_GET, &sc); - m_offset = scr - sc; - mutex.Unlock(); + mutex.Lock(); + ioctl(m_fdcontrol, EM8300_IOCTL_SCR_GET, &sc); + m_offset = scr - sc; + mutex.Unlock(); } // ================================== uint32_t cDxr3SysClock::GetSysClock(void) { - uint32_t sc; - uint32_t retval; + uint32_t sc; + uint32_t retval; - mutex.Lock(); - ioctl(m_fdcontrol, EM8300_IOCTL_SCR_GET, &sc); - retval = sc + m_offset; - mutex.Unlock(); + mutex.Lock(); + ioctl(m_fdcontrol, EM8300_IOCTL_SCR_GET, &sc); + retval = sc + m_offset; + mutex.Unlock(); - return retval; + return retval; } // ================================== void cDxr3SysClock::SetPts(uint32_t pts) { - uint32_t newPts = 0; + uint32_t newPts = 0; - mutex.Lock(); - newPts = pts - m_offset; - ioctl(m_fdvideo, EM8300_IOCTL_VIDEO_SETPTS, &newPts); - mutex.Unlock(); + mutex.Lock(); + newPts = pts - m_offset; + ioctl(m_fdvideo, EM8300_IOCTL_VIDEO_SETPTS, &newPts); + mutex.Unlock(); } // ================================== void cDxr3SysClock::SetSpuPts(uint32_t pts) { - uint32_t newPts = 0; + uint32_t newPts = 0; - mutex.Lock(); - newPts = (pts - m_offset) << 1; // fix for DVD subtitles - ioctl(m_fdspu, EM8300_IOCTL_SPU_SETPTS, &newPts); - mutex.Unlock(); + mutex.Lock(); + newPts = (pts - m_offset) << 1; // fix for DVD subtitles + ioctl(m_fdspu, EM8300_IOCTL_SPU_SETPTS, &newPts); + mutex.Unlock(); } |