summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-02-02 15:42:49 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-02-02 15:42:49 +0100
commitae67a00d7e5758275cddf1f2b278a394f29613b1 (patch)
treebd44389bf9a687f86df5d93078d6f0566396b9c7
parent5c65728d0f8e094403e4cb009445e0bfaf64c971 (diff)
downloadvdr-plugin-dxr3-ae67a00d7e5758275cddf1f2b278a394f29613b1.tar.gz
vdr-plugin-dxr3-ae67a00d7e5758275cddf1f2b278a394f29613b1.tar.bz2
no need to store lastSeenPts as same as vPts
-rw-r--r--dxr3device.c2
-rw-r--r--dxr3interface.c7
-rw-r--r--dxr3interface.h2
3 files changed, 1 insertions, 10 deletions
diff --git a/dxr3device.c b/dxr3device.c
index a1e3da3..2f76e8a 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -109,7 +109,7 @@ bool cDxr3Device::SetPlayMode(ePlayMode PlayMode)
// ==================================
int64_t cDxr3Device::GetSTC()
{
- return cDxr3Interface::instance()->GetPts();
+ return (vPts << 1);
}
// ==================================
diff --git a/dxr3interface.c b/dxr3interface.c
index b04d08e..aa2fd0e 100644
--- a/dxr3interface.c
+++ b/dxr3interface.c
@@ -114,12 +114,6 @@ void cDxr3Interface::SetSpuPts(uint32_t pts)
Unlock();
}
-// ==================================
-int64_t cDxr3Interface::GetPts()
-{
- return m_lastSeenPts << 1;
-}
-
// set/get functions
// ==================================
//! get aspect ratio
@@ -285,7 +279,6 @@ void cDxr3Interface::PlayVideoFrame(cDxr3PesFrame *frame, uint32_t pts)
pts += 45000;
dsyslog("setting pts %d", pts);
this->SetPts(pts);
- m_lastSeenPts = pts;
}
Lock();
diff --git a/dxr3interface.h b/dxr3interface.h
index 72d3561..2516ac1 100644
--- a/dxr3interface.h
+++ b/dxr3interface.h
@@ -75,7 +75,6 @@ public:
uint32_t GetSysClock();
void SetPts(uint32_t pts);
void SetSpuPts(uint32_t pts);
- int64_t GetPts();
// state changes
void EnableVideo()
@@ -129,7 +128,6 @@ private:
int m_fdControl; ///< filehandle for contol fifo of dxr3 card
int m_fdVideo; ///< filehandle for video fifo of dxr3 card
int m_fdSpu; ///< filehandle for spu fifo of dxr3 card
- uint32_t m_lastSeenPts;
// clock
uint32_t m_offset;