diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-06-05 19:50:15 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-06-05 19:50:15 +0200 |
commit | fd95042d556cf3174ec1fce011bea959e613ea64 (patch) | |
tree | c57dd8fe6917d0bf6769002acc4a39533431bd9d | |
parent | d6d9bdefa017c0256397ac7337847bce37a6b07c (diff) | |
download | vdr-plugin-dxr3-fd95042d556cf3174ec1fce011bea959e613ea64.tar.gz vdr-plugin-dxr3-fd95042d556cf3174ec1fce011bea959e613ea64.tar.bz2 |
get rid of playCount
-rw-r--r-- | dxr3device.c | 12 | ||||
-rw-r--r-- | dxr3device.h | 1 |
2 files changed, 2 insertions, 11 deletions
diff --git a/dxr3device.c b/dxr3device.c index 6d968ca..e7e30b9 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -42,7 +42,7 @@ static const char *DEV_DXR3_CONT = ""; static const int SILENT_AUDIO_SIZE = 16384; static const int TIMESTAMPS_500MS = 45000; -cDxr3Device::cDxr3Device() : spuDecoder(NULL), pluginOn(true), vPts(0), scrSet(false), playCount(0), aspectRatio(EM8300_ASPECTRATIO_4_3) +cDxr3Device::cDxr3Device() : spuDecoder(NULL), pluginOn(true), vPts(0), scrSet(false), aspectRatio(EM8300_ASPECTRATIO_4_3) { silentAudio = new uchar[SILENT_AUDIO_SIZE]; @@ -143,7 +143,6 @@ bool cDxr3Device::SetPlayMode(ePlayMode PlayMode) playBlackFrame(); audioOut->setEnabled(false); scrSet = false; - playCount = 0; // here we use some magic // set the scr into future so that the firmware/hardware @@ -253,14 +252,6 @@ int cDxr3Device::PlayVideo(const uchar *Data, int Length) } playVideoFrame(&frame, vPts); - if (playCount < 7) { - playCount++; - } - if (playCount == 7) { - setPlayMode(); - playCount = 8; - } - return Length; } @@ -509,6 +500,7 @@ void cDxr3Device::claimDevices() // get bcs values from driver CHECK(ioctl(fdControl, EM8300_IOCTL_GETBCS, &bcs)); + setPlayMode(); playBlackFrame(); } diff --git a/dxr3device.h b/dxr3device.h index c4c0402..0881817 100644 --- a/dxr3device.h +++ b/dxr3device.h @@ -136,7 +136,6 @@ private: uint32_t vPts; uint32_t aPts; bool scrSet; - int playCount; uint32_t horizontal; uint32_t vertical; |