forked from rofafor/vdr-plugin-iptv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidscanner.h
40 lines (32 loc) · 786 Bytes
/
sidscanner.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* sidscanner.h: IPTV plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#pragma once
#include <vdr/channels.h>
#include <vdr/filter.h>
#include "log.h"
class cSidScanner : public cFilter {
private:
tChannelID channelIdM;
bool sidFoundM;
bool nidFoundM;
bool tidFoundM;
bool isActiveM;
protected:
void Process(u_short pidP, u_char tidP, const u_char *dataP, int lengthP) override;
public:
cSidScanner();
~cSidScanner() override;
void SetChannel(const tChannelID &channelIdP);
void Open() {
debug1("%s", __PRETTY_FUNCTION__);
isActiveM = true;
}
void Close() {
debug1("%s", __PRETTY_FUNCTION__);
isActiveM = false;
}
};