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();
|
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);
|
conn = Socket::Connection(1, 0);
|
||||||
totalBytes = 0;
|
totalBytes = 0;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
AnalyserDTSC::AnalyserDTSC(Util::Config &conf) : Analyser(conf){
|
||||||
headLess = conf.getBool("headless");
|
headLess = conf.getBool("headless");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ public:
|
||||||
AnalyserDTSC(Util::Config &conf);
|
AnalyserDTSC(Util::Config &conf);
|
||||||
bool parsePacket();
|
bool parsePacket();
|
||||||
static void init(Util::Config &conf);
|
static void init(Util::Config &conf);
|
||||||
|
virtual bool open(const std::string &filename);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool headLess;
|
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);
|
myConn = Socket::Connection(1, 0);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
AnalyserRTSP::AnalyserRTSP(Util::Config &conf) : Analyser(conf){
|
||||||
sdpState.myMeta = &myMeta;
|
sdpState.myMeta = &myMeta;
|
||||||
sdpState.incomingPacketCallback = incomingPacket;
|
sdpState.incomingPacketCallback = incomingPacket;
|
||||||
classPointer = this;
|
classPointer = this;
|
||||||
|
|
|
@ -12,6 +12,7 @@ public:
|
||||||
static void init(Util::Config &cfg);
|
static void init(Util::Config &cfg);
|
||||||
bool parsePacket();
|
bool parsePacket();
|
||||||
void incoming(const DTSC::Packet &pkt);
|
void incoming(const DTSC::Packet &pkt);
|
||||||
|
virtual bool open(const std::string &filename);
|
||||||
bool isOpen();
|
bool isOpen();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Reference in a new issue