diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-01-09 20:22:33 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-01-09 20:22:33 +0100 |
commit | 8bf0451b4c0bc6b9bc4a86fb0544c09c1f9b824b (patch) | |
tree | 0e8fb9d222b09ac39892d505a7d33e8d430124b9 /dxr3syncbuffer.c | |
parent | 65514506b381200bc0bd7ecb0c84d51fef5b23fe (diff) | |
download | vdr-plugin-dxr3-8bf0451b4c0bc6b9bc4a86fb0544c09c1f9b824b.tar.gz vdr-plugin-dxr3-8bf0451b4c0bc6b9bc4a86fb0544c09c1f9b824b.tar.bz2 |
there is no need to store the type of a buffer
The type is known by the used buffer.
Diffstat (limited to 'dxr3syncbuffer.c')
-rw-r--r-- | dxr3syncbuffer.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dxr3syncbuffer.c b/dxr3syncbuffer.c index 50996f1..180cb55 100644 --- a/dxr3syncbuffer.c +++ b/dxr3syncbuffer.c @@ -54,15 +54,13 @@ void cFixedLengthFrame::Init(uint32_t lenght) } // ================================== -void cFixedLengthFrame::CopyFrame(const uint8_t* pStart, int length, - uint32_t pts, eFrameType type) +void cFixedLengthFrame::CopyFrame(const uint8_t* pStart, int length, uint32_t pts) { if (length > m_length) { delete[] m_pData; m_pData = new uint8_t[length]; m_length = length; } - m_type = type; m_count = length; m_pts = pts; memcpy((void*) m_pData, (void*) pStart, length); @@ -180,7 +178,7 @@ bool cDxr3SyncBuffer::Poll(int TimeoutMs) } // ================================== -cFixedLengthFrame* cDxr3SyncBuffer::Push(const uint8_t* pStart, int length, uint32_t pts, eFrameType type) throw (eSyncBufferException) +cFixedLengthFrame* cDxr3SyncBuffer::Push(const uint8_t* pStart, int length, uint32_t pts) throw (eSyncBufferException) { int lastIndex = 0; struct timeval tv_start, tv; @@ -202,7 +200,7 @@ cFixedLengthFrame* cDxr3SyncBuffer::Push(const uint8_t* pStart, int length, uint } lastIndex = m_nextFree; - m_pBuffer[m_nextFree].CopyFrame(pStart, length, pts, type); + m_pBuffer[m_nextFree].CopyFrame(pStart, length, 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); |