summaryrefslogtreecommitdiff
path: root/dxr3device.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-08-02 22:40:26 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-08-02 22:40:26 +0200
commit99a17af7fa10b4119d59c53cdd07ef2b69b33c2a (patch)
tree792046d01e46b5ff8ce2af301346ecead25ac2df /dxr3device.c
parentb256d511e987f151d6440d41856961a87064bfff (diff)
downloadvdr-plugin-dxr3-99a17af7fa10b4119d59c53cdd07ef2b69b33c2a.tar.gz
vdr-plugin-dxr3-99a17af7fa10b4119d59c53cdd07ef2b69b33c2a.tar.bz2
rename TIMESTAMPS_500MS -> TIMESTAMPS_PREBUFFER
Diffstat (limited to 'dxr3device.c')
-rw-r--r--dxr3device.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dxr3device.c b/dxr3device.c
index 0e64fea..1cfc246 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -39,7 +39,7 @@ static const char *DEV_DXR3_OSD = "_sp";
static const char *DEV_DXR3_VIDEO = "_mv";
static const char *DEV_DXR3_CONT = "";
-static const int TIMESTAMPS_500MS = 45000;
+static const int TIMESTAMPS_PREBUFFER = 45000; // 500ms
cDxr3Device::cDxr3Device() : spuDecoder(NULL), pluginOn(true), vPts(0), scrSet(false), aspectRatio(EM8300_ASPECTRATIO_4_3)
{
@@ -146,10 +146,10 @@ bool cDxr3Device::SetPlayMode(ePlayMode PlayMode)
// set the scr into future so that the firmware/hardware
// clears the buffers.
CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_GET, &val));
- val += TIMESTAMPS_500MS * 4;
+ val += TIMESTAMPS_PREBUFFER * 4;
CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_SET, &val));
- playBlackFrame(val + TIMESTAMPS_500MS);
+ playBlackFrame(val + TIMESTAMPS_PREBUFFER);
break;
case pmAudioVideo:
@@ -183,7 +183,7 @@ void cDxr3Device::Clear()
// set the scr into future so that the firmware/hardware
// clears the buffers.
CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_GET, &val));
- val += TIMESTAMPS_500MS * 4;
+ val += TIMESTAMPS_PREBUFFER * 4;
CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_SET, &val));
audioOut->flush();
@@ -501,7 +501,7 @@ void cDxr3Device::claimDevices()
CHECK(ioctl(fdControl, EM8300_IOCTL_GETBCS, &bcs));
setPlayMode();
- playBlackFrame(TIMESTAMPS_500MS);
+ playBlackFrame(TIMESTAMPS_PREBUFFER);
}
void cDxr3Device::releaseDevices()
@@ -649,7 +649,7 @@ void cDxr3Device::setScr(uint32_t val)
{
uint32_t scr;
CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_GET, &scr));
- offset = val - scr - TIMESTAMPS_500MS;
+ offset = val - scr - TIMESTAMPS_PREBUFFER;
}
uint32_t cDxr3Device::getScr()