diff options
author | austriancoder <austriancoder> | 2005-01-10 16:07:56 +0000 |
---|---|---|
committer | austriancoder <austriancoder> | 2005-01-10 16:07:56 +0000 |
commit | f4679c32d8fb3d38738419716ddb7a4526fd7e4e (patch) | |
tree | 15497173e0cb860fc2d2c5127abcd3ddd1692316 | |
parent | c765bc2f70c89a169c17dff980b92a6dd1b1e851 (diff) | |
download | vdr-plugin-dxr3-f4679c32d8fb3d38738419716ddb7a4526fd7e4e.tar.gz vdr-plugin-dxr3-f4679c32d8fb3d38738419716ddb7a4526fd7e4e.tar.bz2 |
some littel fixes
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | dxr3syncbuffer.c | 6 | ||||
-rw-r--r-- | dxr3syncbuffer.h | 6 |
3 files changed, 11 insertions, 11 deletions
@@ -1,7 +1,7 @@ # # Makefile for a Video Disk Recorder plugin # -# $Id: Makefile,v 1.9 2005/01/05 18:56:40 austriancoder Exp $ +# $Id: Makefile,v 1.10 2005/01/10 16:07:56 austriancoder Exp $ # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. @@ -20,12 +20,12 @@ CXXFLAGS = -O2 -Wall -Woverloaded-virtual ### The directory environment: -DVBDIR = ../../../DVB -VDRDIR = ../../.. -LIBDIR = ../../lib TMPDIR = /tmp -FFMDIR = /usr/local/include/ffmpeg +FFMDIR = /usr/include/ffmpeg EM8300 = /usr/include +DVBDIR = /usr/src/linux +VDRDIR = /usr/include/vdr +LIBDIR = /usr/lib ### Allow user defined options to overwrite defaults: diff --git a/dxr3syncbuffer.c b/dxr3syncbuffer.c index f2fe80f..e7544ec 100644 --- a/dxr3syncbuffer.c +++ b/dxr3syncbuffer.c @@ -54,8 +54,8 @@ cFixedLengthFrame::~cFixedLengthFrame() // ! setup our frame void cFixedLengthFrame::Init(uint32_t lenght) { - m_length = length; - m_pData = new uint8_t[length]; + m_length = lenght; + m_pData = new uint8_t[lenght]; // allocation ok? if (!m_pData) @@ -125,7 +125,7 @@ cDxr3SyncBuffer::cDxr3SyncBuffer(int frameCount, int frameLength, cDxr3Interface // init our new m_pBuffer; for (int i = 0; i < frameCount; i++) { - m_pBuffer[i].Init(frameLenght); + m_pBuffer[i].Init(frameLength); } // set some default values diff --git a/dxr3syncbuffer.h b/dxr3syncbuffer.h index 3ae5cc9..63c6e1e 100644 --- a/dxr3syncbuffer.h +++ b/dxr3syncbuffer.h @@ -39,10 +39,10 @@ const uint32_t UNKNOWN_ASPECT_RATIO = 0xFFFFFFFF; class cFixedLengthFrame { public: - explicit cFixedLengthFrame(); + cFixedLengthFrame(); ~cFixedLengthFrame(); - void Init(uint32_t lenght); + void Init(uint32_t lenght); void CopyFrame(const uint8_t* pStart, int length, uint32_t pts, eFrameType type); uint8_t* GetData(void); @@ -74,7 +74,7 @@ protected: static uint32_t m_staticAudioDataRate; private: - cFixedLengthFrame(); // you are not allowed to use this constructor +// cFixedLengthFrame(); // you are not allowed to use this constructor cFixedLengthFrame(cFixedLengthFrame&); // no copy constructor }; |