summaryrefslogtreecommitdiff
path: root/dxr3sysclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3sysclock.c')
-rw-r--r--dxr3sysclock.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/dxr3sysclock.c b/dxr3sysclock.c
index 5eccb5c..8c32948 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();
}