Fixed DTSC/RTSP analysers
This commit is contained in:
parent
d36a9664f7
commit
e63c65ea37
4 changed files with 14 additions and 2 deletions
|
@ -12,9 +12,14 @@ void AnalyserDTSC::init(Util::Config &conf){
|
|||
opt.null();
|
||||
}
|
||||
|
||||
AnalyserDTSC::AnalyserDTSC(Util::Config &conf) : Analyser(conf){
|
||||
bool AnalyserDTSC::open(const std::string &filename){
|
||||
if (!Analyser::open(filename)){return false;}
|
||||
conn = Socket::Connection(1, 0);
|
||||
totalBytes = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
AnalyserDTSC::AnalyserDTSC(Util::Config &conf) : Analyser(conf){
|
||||
headLess = conf.getBool("headless");
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ public:
|
|||
AnalyserDTSC(Util::Config &conf);
|
||||
bool parsePacket();
|
||||
static void init(Util::Config &conf);
|
||||
virtual bool open(const std::string &filename);
|
||||
|
||||
private:
|
||||
bool headLess;
|
||||
|
|
|
@ -25,8 +25,13 @@ void AnalyserRTSP::incoming(const DTSC::Packet &pkt){
|
|||
}
|
||||
}
|
||||
|
||||
AnalyserRTSP::AnalyserRTSP(Util::Config &conf) : Analyser(conf){
|
||||
bool AnalyserRTSP::open(const std::string &filename){
|
||||
if (!Analyser::open(filename)){return false;}
|
||||
myConn = Socket::Connection(1, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
AnalyserRTSP::AnalyserRTSP(Util::Config &conf) : Analyser(conf){
|
||||
sdpState.myMeta = &myMeta;
|
||||
sdpState.incomingPacketCallback = incomingPacket;
|
||||
classPointer = this;
|
||||
|
|
|
@ -12,6 +12,7 @@ public:
|
|||
static void init(Util::Config &cfg);
|
||||
bool parsePacket();
|
||||
void incoming(const DTSC::Packet &pkt);
|
||||
virtual bool open(const std::string &filename);
|
||||
bool isOpen();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Reference in a new issue