summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-08-02 22:44:29 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-08-02 22:44:29 +0200
commite51603cd2b0ee1158de462d47a7d466837a0a965 (patch)
treef15fed87b464f1d90842cd06f3752054b6bd0198
parent51f31448c9d5892de56d8e0445f8e655db6b50c5 (diff)
downloadvdr-plugin-dxr3-e51603cd2b0ee1158de462d47a7d466837a0a965.tar.gz
vdr-plugin-dxr3-e51603cd2b0ee1158de462d47a7d466837a0a965.tar.bz2
remove some left overs
-rw-r--r--dxr3device.c21
-rw-r--r--dxr3device.h3
2 files changed, 0 insertions, 24 deletions
diff --git a/dxr3device.c b/dxr3device.c
index 5b2326e..3be92ea 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -43,7 +43,6 @@ static const int TIMESTAMPS_PREBUFFER = 4500; // 50ms
cDxr3Device::cDxr3Device() : spuDecoder(NULL), pluginOn(true), vPts(0), scrSet(false), aspectRatio(EM8300_ASPECTRATIO_4_3)
{
- lastVideoFrame.data = NULL;
claimDevices();
switch (cSettings::instance()->audioDriver()) {
@@ -76,9 +75,6 @@ cDxr3Device::~cDxr3Device()
if (spuDecoder)
delete spuDecoder;
-
- if (lastVideoFrame.data)
- delete[] lastVideoFrame.data;
}
cDxr3Device *cDxr3Device::instance()
@@ -600,23 +596,6 @@ void cDxr3Device::playVideoFrame(cDxr3PesFrame *frame, uint32_t pts)
uint32_t len = frame->payloadSize();
WriteAllOrNothing(fdVideo, data, len, 1000, 10);
-
- // store last written video frame
- lastVideoFrameMutex.Lock();
-
- // make sure that there is space to store video data
- if (!lastVideoFrame.data) {
- lastVideoFrame.data = new uint8_t[len];
- } else if (lastVideoFrame.size < len) {
- delete[] lastVideoFrame.data;
- lastVideoFrame.data = new uint8_t[len];
- }
-
- // update data
- memcpy(lastVideoFrame.data, data, sizeof(uint8_t)*len);
- lastVideoFrame.size = len;
-
- lastVideoFrameMutex.Unlock();
}
void cDxr3Device::playBlackFrame(uint32_t pts)
diff --git a/dxr3device.h b/dxr3device.h
index fac1dc7..23b242d 100644
--- a/dxr3device.h
+++ b/dxr3device.h
@@ -137,9 +137,6 @@ private:
uint32_t vertical;
uint32_t aspectRatio;
- cMutex lastVideoFrameMutex;
- AVPacket lastVideoFrame;
-
static cDxr3Device *inst;
};