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)
|
void cSatipDevice::WriteData(uchar *bufferP, int lengthP)
|
||||||
{
|
{
|
||||||
//debug("cSatipDevice::%s(%u)", __FUNCTION__, deviceIndexM);
|
//debug("cSatipDevice::%s(%u)", __FUNCTION__, deviceIndexM);
|
||||||
AddTunerStatistic(lengthP);
|
|
||||||
// Fill up TS buffer
|
// Fill up TS buffer
|
||||||
if (tsBufferM) {
|
if (tsBufferM) {
|
||||||
int len = tsBufferM->Put(bufferP, lengthP);
|
int len = tsBufferM->Put(bufferP, lengthP);
|
||||||
|
2
device.h
2
device.h
@ -15,7 +15,7 @@
|
|||||||
#include "sectionfilter.h"
|
#include "sectionfilter.h"
|
||||||
#include "statistics.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
|
// static ones
|
||||||
public:
|
public:
|
||||||
static unsigned int deviceCount;
|
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)
|
void cSatipTuner::ProcessVideoData(u_char *bufferP, int lengthP)
|
||||||
{
|
{
|
||||||
//debug("cSatipTuner::%s(%d) [device %d]", __FUNCTION__, lengthP, deviceIdM);
|
//debug("cSatipTuner::%s(%d) [device %d]", __FUNCTION__, lengthP, deviceIdM);
|
||||||
if (lengthP > 0)
|
if (lengthP > 0) {
|
||||||
|
AddTunerStatistic(lengthP);
|
||||||
deviceM->WriteData(bufferP, lengthP);
|
deviceM->WriteData(bufferP, lengthP);
|
||||||
|
}
|
||||||
cMutexLock MutexLock(&mutexM);
|
cMutexLock MutexLock(&mutexM);
|
||||||
reConnectM.Set(eConnectTimeoutMs);
|
reConnectM.Set(eConnectTimeoutMs);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user