From ae67a00d7e5758275cddf1f2b278a394f29613b1 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 2 Feb 2010 15:42:49 +0100 Subject: no need to store lastSeenPts as same as vPts --- dxr3device.c | 2 +- dxr3interface.c | 7 ------- dxr3interface.h | 2 -- 3 files changed, 1 insertion(+), 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; -- cgit v1.2.3