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:
parent
5c051d919b
commit
6b2090e9ad
1
device.c
1
device.c
@ -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);
|
||||
|
2
device.h
2
device.h
@ -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;
|
||||
|
4
tuner.c
4
tuner.c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user