removed CTimer from STCPacket

main
Tom Early 2 years ago
parent 0ca0629da6
commit f85434420b

@ -659,7 +659,7 @@ void CController::RouteDmrPacket(std::shared_ptr<CTranscoderPacket> packet)
void CController::Dump(const std::shared_ptr<CTranscoderPacket> p, const std::string &title) const void CController::Dump(const std::shared_ptr<CTranscoderPacket> p, const std::string &title) const
{ {
std::stringstream line; std::stringstream line;
line << title << " Mod='" << p->GetModule() << "' SID=" << std::showbase << std::hex << ntohs(p->GetStreamId()) << std::noshowbase << " ET:" << std::setprecision(3) << p->GetTimeMS(); line << title << " Mod='" << p->GetModule() << "' SID=" << std::showbase << std::hex << ntohs(p->GetStreamId()) << std::noshowbase;
ECodecType in = p->GetCodecIn(); ECodecType in = p->GetCodecIn();
if (p->DStarIsSet()) if (p->DStarIsSet())

@ -143,11 +143,6 @@ uint32_t CTranscoderPacket::GetSequence() const
return tcpacket.sequence; return tcpacket.sequence;
} }
double CTranscoderPacket::GetTimeMS() const
{
return 1000.0 * tcpacket.rt_timer.time();
}
bool CTranscoderPacket::IsLast() const bool CTranscoderPacket::IsLast() const
{ {
return tcpacket.is_last; return tcpacket.is_last;

@ -52,7 +52,6 @@ public:
ECodecType GetCodecIn() const; ECodecType GetCodecIn() const;
uint16_t GetStreamId() const; uint16_t GetStreamId() const;
uint32_t GetSequence() const; uint32_t GetSequence() const;
double GetTimeMS() const;
bool IsLast() const; bool IsLast() const;
bool IsSecond() const; bool IsSecond() const;
bool DStarIsSet() const; bool DStarIsSet() const;

Loading…
Cancel
Save

Powered by TurnKey Linux.