From b3d4020a37f249a353e425b0000d41606e756e57 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Sat, 9 Jan 2010 20:26:34 +0100 Subject: add Accessors for pts in cFixedLengthFrame --- dxr3syncbuffer.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'dxr3syncbuffer.c') diff --git a/dxr3syncbuffer.c b/dxr3syncbuffer.c index 180cb55..33843a2 100644 --- a/dxr3syncbuffer.c +++ b/dxr3syncbuffer.c @@ -54,7 +54,7 @@ void cFixedLengthFrame::Init(uint32_t lenght) } // ================================== -void cFixedLengthFrame::CopyFrame(const uint8_t* pStart, int length, uint32_t pts) +void cFixedLengthFrame::CopyFrame(const uint8_t* pStart, int length) { if (length > m_length) { delete[] m_pData; @@ -62,7 +62,6 @@ void cFixedLengthFrame::CopyFrame(const uint8_t* pStart, int length, uint32_t pt m_length = length; } m_count = length; - m_pts = pts; memcpy((void*) m_pData, (void*) pStart, length); } @@ -78,18 +77,6 @@ int cFixedLengthFrame::GetCount(void) return m_count; } -// ================================== -uint32_t cFixedLengthFrame::GetPts(void) -{ - return m_pts; -} - -// ================================== -void cFixedLengthFrame::SetPts(uint32_t pts) -{ - m_pts = pts; -} - // ================================== //! constructor cDxr3SyncBuffer::cDxr3SyncBuffer(int frameCount, int frameLength) : @@ -200,7 +187,8 @@ cFixedLengthFrame* cDxr3SyncBuffer::Push(const uint8_t* pStart, int length, uint } lastIndex = m_nextFree; - m_pBuffer[m_nextFree].CopyFrame(pStart, length, pts); + m_pBuffer[m_nextFree].CopyFrame(pStart, length); + m_pBuffer[m_nextFree].pts(pts); m_pBuffer[m_nextFree].channels(UNKNOWN_CHANNEL_COUNT); m_pBuffer[m_nextFree].samplerate(UNKNOWN_DATA_RATE); m_pBuffer[m_nextFree].aspectratio(UNKNOWN_ASPECT_RATIO); -- cgit v1.2.3