summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;