diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-01-09 20:53:17 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-01-09 20:53:17 +0100 |
commit | 7ebd290822891494ce536126a2ee446bcd69876e (patch) | |
tree | cee2f08545efdc3e1eb302e5a9def60ecc9cf87a /dxr3syncbuffer.c | |
parent | 2c2988b4a7afd8f049f2b7ac8a793a6f390b7cf7 (diff) | |
download | vdr-plugin-dxr3-7ebd290822891494ce536126a2ee446bcd69876e.tar.gz vdr-plugin-dxr3-7ebd290822891494ce536126a2ee446bcd69876e.tar.bz2 |
there is no need for m_count variable
Diffstat (limited to 'dxr3syncbuffer.c')
-rw-r--r-- | dxr3syncbuffer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dxr3syncbuffer.c b/dxr3syncbuffer.c index 33843a2..db6475f 100644 --- a/dxr3syncbuffer.c +++ b/dxr3syncbuffer.c @@ -59,9 +59,8 @@ void cFixedLengthFrame::CopyFrame(const uint8_t* pStart, int length) if (length > m_length) { delete[] m_pData; m_pData = new uint8_t[length]; - m_length = length; } - m_count = length; + m_length = length; memcpy((void*) m_pData, (void*) pStart, length); } @@ -74,7 +73,7 @@ uint8_t* cFixedLengthFrame::GetData(void) // ================================== int cFixedLengthFrame::GetCount(void) { - return m_count; + return m_length; } // ================================== |