1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

Moved tuner statistics back to cSatipTuner.

This commit is contained in:
Rolf Ahrenberg 2014-11-16 16:30:45 +02:00
parent 5c051d919b
commit 6b2090e9ad
4 changed files with 4 additions and 4 deletions

View File

@ -407,7 +407,6 @@ bool cSatipDevice::HasInternalCam(void)
void cSatipDevice::WriteData(uchar *bufferP, int lengthP)
{
//debug("cSatipDevice::%s(%u)", __FUNCTION__, deviceIndexM);
AddTunerStatistic(lengthP);
// Fill up TS buffer
if (tsBufferM) {
int len = tsBufferM->Put(bufferP, lengthP);

View File

@ -15,7 +15,7 @@
#include "sectionfilter.h"
#include "statistics.h"
class cSatipDevice : public cDevice, public cSatipPidStatistics, public cSatipBufferStatistics, public cSatipTunerStatistics, public cSatipDeviceIf {
class cSatipDevice : public cDevice, public cSatipPidStatistics, public cSatipBufferStatistics, public cSatipDeviceIf {
// static ones
public:
static unsigned int deviceCount;

View File

@ -242,8 +242,10 @@ unsigned int cSatipTuner::GetVideoDataSize(void)
void cSatipTuner::ProcessVideoData(u_char *bufferP, int lengthP)
{
//debug("cSatipTuner::%s(%d) [device %d]", __FUNCTION__, lengthP, deviceIdM);
if (lengthP > 0)
if (lengthP > 0) {
AddTunerStatistic(lengthP);
deviceM->WriteData(bufferP, lengthP);
}
cMutexLock MutexLock(&mutexM);
reConnectM.Set(eConnectTimeoutMs);
}

View File

@ -17,7 +17,6 @@
#include "rtsp.h"
#include "server.h"
#include "statistics.h"
#include "socket.h"
class cSatipPid : public cVector<int> {
private: