提交 9fe70b1c authored 作者: José Luis Millán's avatar José Luis Millán

Fix typo

上级 35c035d0
...@@ -38,7 +38,7 @@ namespace RTC ...@@ -38,7 +38,7 @@ namespace RTC
virtual Json::Value ToJson() = 0; virtual Json::Value ToJson() = 0;
virtual bool ReceivePacket(RTC::RtpPacket* packet); virtual bool ReceivePacket(RTC::RtpPacket* packet);
uint32_t GetSsrc(); uint32_t GetSsrc();
const RTC::RtpCodecMimeType& GetMymeType() const; const RTC::RtpCodecMimeType& GetMimeType() const;
bool IsHealthy(); bool IsHealthy();
protected: protected:
...@@ -83,7 +83,7 @@ namespace RTC ...@@ -83,7 +83,7 @@ namespace RTC
return this->params.ssrc; return this->params.ssrc;
} }
inline const RTC::RtpCodecMimeType& RtpStream::GetMymeType() const inline const RTC::RtpCodecMimeType& RtpStream::GetMimeType() const
{ {
return this->params.mime; return this->params.mime;
} }
......
...@@ -334,8 +334,8 @@ namespace RTC ...@@ -334,8 +334,8 @@ namespace RTC
{ {
bool isKeyFrame = false; bool isKeyFrame = false;
if (Codecs::IsKnown(this->rtpStream->GetMymeType()) && if (Codecs::IsKnown(this->rtpStream->GetMimeType()) &&
Codecs::IsKeyFrame(this->rtpStream->GetMymeType(), packet)) Codecs::IsKeyFrame(this->rtpStream->GetMimeType(), packet))
{ {
isKeyFrame = true; isKeyFrame = true;
...@@ -343,7 +343,7 @@ namespace RTC ...@@ -343,7 +343,7 @@ namespace RTC
RTC::RtpEncodingParameters::profile2String[profile].c_str()); RTC::RtpEncodingParameters::profile2String[profile].c_str());
} }
if (!Codecs::IsKnown(this->rtpStream->GetMymeType()) || isKeyFrame ) if (!Codecs::IsKnown(this->rtpStream->GetMimeType()) || isKeyFrame)
{ {
SetEffectiveProfile(this->targetProfile); SetEffectiveProfile(this->targetProfile);
...@@ -432,7 +432,11 @@ namespace RTC ...@@ -432,7 +432,11 @@ namespace RTC
packet->GetSsrc(), packet->GetSsrc(),
packet->GetSequenceNumber()); packet->GetSequenceNumber());
RetransmitRtpPacket(packet); // Send the packet.
this->transport->SendRtpPacket(packet);
// Update transmitted RTP data counter.
this->transmittedCounter.Update(packet);
} }
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论