From e90ad159371e1f83e02ae10db326c2b2fbffdfbd Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 2 Jun 2009 08:30:13 +0200 Subject: rework singleton class --- dxr3output-video.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'dxr3output-video.c') diff --git a/dxr3output-video.c b/dxr3output-video.c index 09c3af8..7493f95 100644 --- a/dxr3output-video.c +++ b/dxr3output-video.c @@ -23,13 +23,12 @@ #include #include "dxr3output.h" -#define SCR m_dxr3Device.GetSysClock() +#define SCR m_dxr3Device->GetSysClock() // ================================== //! constr. -cDxr3VideoOutThread::cDxr3VideoOutThread(cDxr3Interface& dxr3Device, - cDxr3SyncBuffer& buffer) : - cDxr3OutputThread(dxr3Device, buffer) +cDxr3VideoOutThread::cDxr3VideoOutThread(cDxr3SyncBuffer& buffer) : + cDxr3OutputThread(buffer) { SetDescription("DXR3 video output"); } @@ -52,14 +51,14 @@ void cDxr3VideoOutThread::Action() if (pts > SCR && abs((int)pts - (int)SCR) < 7500) { - m_dxr3Device.SetPts(pts); + m_dxr3Device->SetPts(pts); } if (!pts || pts < SCR) { if (m_buffer.Available()) { - m_dxr3Device.PlayVideoFrame(pNext); + m_dxr3Device->PlayVideoFrame(pNext); m_buffer.Pop(); } } @@ -67,12 +66,12 @@ void cDxr3VideoOutThread::Action() { if ((pts > SCR) && abs((int)pts - (int)SCR) < 7500) { - m_dxr3Device.SetPts(pts); + m_dxr3Device->SetPts(pts); if (m_buffer.Available() && pNext->GetData() && pNext->GetCount()) { - m_dxr3Device.PlayVideoFrame(pNext); + m_dxr3Device->PlayVideoFrame(pNext); m_buffer.Pop(); } } @@ -80,7 +79,7 @@ void cDxr3VideoOutThread::Action() { if (pts < SCR) { - m_dxr3Device.PlayVideoFrame(pNext); + m_dxr3Device->PlayVideoFrame(pNext); m_buffer.Pop(); } } -- cgit v1.2.3