- performance optimization
This commit is contained in:
@@ -31,7 +31,7 @@ RtpBuffer::Packet::Packet(const std::shared_ptr<RTPPacket>& packet, std::chrono:
|
||||
:mRtp(packet), mTimelength(timelength), mSamplerate(samplerate)
|
||||
{}
|
||||
|
||||
std::shared_ptr<RTPPacket> RtpBuffer::Packet::rtp() const
|
||||
const std::shared_ptr<RTPPacket>& RtpBuffer::Packet::rtp() const
|
||||
{
|
||||
return mRtp;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public:
|
||||
{
|
||||
public:
|
||||
Packet(const std::shared_ptr<RTPPacket>& packet, std::chrono::milliseconds timelen, int samplerate);
|
||||
std::shared_ptr<RTPPacket> rtp() const;
|
||||
const std::shared_ptr<RTPPacket>& rtp() const;
|
||||
|
||||
std::chrono::milliseconds timelength() const;
|
||||
int samplerate() const;
|
||||
|
||||
Reference in New Issue
Block a user