diff options
Diffstat (limited to 'dxr3syncbuffer.c')
-rw-r--r-- | dxr3syncbuffer.c | 18 |
1 files changed, 3 insertions, 15 deletions
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); } @@ -79,18 +78,6 @@ int cFixedLengthFrame::GetCount(void) } // ================================== -uint32_t cFixedLengthFrame::GetPts(void) -{ - return m_pts; -} - -// ================================== -void cFixedLengthFrame::SetPts(uint32_t pts) -{ - m_pts = pts; -} - -// ================================== //! constructor cDxr3SyncBuffer::cDxr3SyncBuffer(int frameCount, int frameLength) : cRingBuffer(frameCount, true) @@ -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); |