@@ -13,14 +13,15 @@ cIptvSectionFilter::cIptvSectionFilter(int deviceIndexP, uint16_t pidP, uint8_t
13
13
: pusiSeenM(0 ),
14
14
feedCcM(0 ),
15
15
doneqM(0 ),
16
- secBufM(NULL ),
16
+ secBufM(nullptr ),
17
17
secBufpM(0 ),
18
18
secLenM(0 ),
19
19
tsFeedpM(0 ),
20
20
pidM(pidP),
21
21
ringBufferM(new cRingBufferFrame(eDmxMaxSectionCount*eDmxMaxSectionSize)),
22
22
deviceIndexM(deviceIndexP) {
23
23
debug16 (" %s (%d, %d)" , __PRETTY_FUNCTION__, deviceIndexM, pidM);
24
+
24
25
int i;
25
26
26
27
memset (secBufBaseM, 0 , sizeof (secBufBaseM));
@@ -74,20 +75,20 @@ cIptvSectionFilter::~cIptvSectionFilter() {
74
75
socketM[0 ] = -1 ;
75
76
if (tmp >= 0 )
76
77
close (tmp);
77
- secBufM = NULL ;
78
+ secBufM = nullptr ;
78
79
DELETENULL (ringBufferM);
79
80
}
80
81
81
82
inline uint16_t cIptvSectionFilter::GetLength (const uint8_t *dataP) {
82
83
return (uint16_t ) (3 + ((dataP[1 ] & 0x0f ) << 8 ) + dataP[2 ]);
83
84
}
84
85
85
- void cIptvSectionFilter::New (void ) {
86
+ void cIptvSectionFilter::New () {
86
87
tsFeedpM = secBufpM = secLenM = 0 ;
87
88
secBufM = secBufBaseM;
88
89
}
89
90
90
- int cIptvSectionFilter::Filter (void ) {
91
+ int cIptvSectionFilter::Filter () {
91
92
if (secBufM) {
92
93
int i;
93
94
uint8_t neq = 0 ;
@@ -108,7 +109,7 @@ int cIptvSectionFilter::Filter(void) {
108
109
return 0 ;
109
110
}
110
111
111
- inline int cIptvSectionFilter::Feed (void ) {
112
+ inline int cIptvSectionFilter::Feed () {
112
113
if (Filter () < 0 )
113
114
return -1 ;
114
115
secLenM = 0 ;
@@ -205,7 +206,7 @@ void cIptvSectionFilter::Process(const uint8_t *dataP) {
205
206
}
206
207
}
207
208
208
- bool cIptvSectionFilter::Send (void ) {
209
+ bool cIptvSectionFilter::Send () {
209
210
bool result = false ;
210
211
cFrame *section = ringBufferM->Get ();
211
212
if (section) {
@@ -261,7 +262,7 @@ cIptvSectionFilterHandler::~cIptvSectionFilterHandler() {
261
262
Delete (i);
262
263
}
263
264
264
- void cIptvSectionFilterHandler::Action (void ) {
265
+ void cIptvSectionFilterHandler::Action () {
265
266
debug1 (" %s Entering [device %d]" , __PRETTY_FUNCTION__, deviceIndexM);
266
267
bool processed = false ;
267
268
// Do the thread loop
@@ -315,7 +316,7 @@ void cIptvSectionFilterHandler::Action(void) {
315
316
debug1 (" %s Exiting [device %d]" , __PRETTY_FUNCTION__, deviceIndexM);
316
317
}
317
318
318
- cString cIptvSectionFilterHandler::GetInformation (void ) {
319
+ cString cIptvSectionFilterHandler::GetInformation () {
319
320
debug16 (" %s [device %d]" , __PRETTY_FUNCTION__, deviceIndexM);
320
321
// loop through active section filters
321
322
cMutexLock MutexLock (&mutexM);
@@ -338,7 +339,7 @@ bool cIptvSectionFilterHandler::Delete(unsigned int indexP) {
338
339
if ((indexP < eMaxSecFilterCount) && filtersM[indexP]) {
339
340
debug16 (" %s (%d) Found [device %d]" , __PRETTY_FUNCTION__, indexP, deviceIndexM);
340
341
cIptvSectionFilter *tmp = filtersM[indexP];
341
- filtersM[indexP] = NULL ;
342
+ filtersM[indexP] = nullptr ;
342
343
delete tmp;
343
344
return true ;
344
345
}
0 commit comments