提交 0e16087a authored 作者: José Luis Millán's avatar José Luis Millán

Consumer: Always try to use the preferred profile if set

上级 b291ef4e
...@@ -68,7 +68,7 @@ namespace RTC ...@@ -68,7 +68,7 @@ namespace RTC
void FillSupportedCodecPayloadTypes(); void FillSupportedCodecPayloadTypes();
void CreateRtpStream(RTC::RtpEncodingParameters& encoding); void CreateRtpStream(RTC::RtpEncodingParameters& encoding);
void RetransmitRtpPacket(RTC::RtpPacket* packet); void RetransmitRtpPacket(RTC::RtpPacket* packet);
void RecalculateTargetProfile(bool forcePreferred = false); void RecalculateTargetProfile();
void SetEffectiveProfile(RTC::RtpEncodingParameters::Profile profile); void SetEffectiveProfile(RTC::RtpEncodingParameters::Profile profile);
void MayRunProbation(); void MayRunProbation();
......
...@@ -361,7 +361,7 @@ namespace RTC ...@@ -361,7 +361,7 @@ namespace RTC
"preferred profile set [profile:%s]", "preferred profile set [profile:%s]",
RTC::RtpEncodingParameters::profile2String[profile].c_str()); RTC::RtpEncodingParameters::profile2String[profile].c_str());
RecalculateTargetProfile(true /*forcePreferred*/); RecalculateTargetProfile();
} }
void Consumer::SetSourcePreferredProfile(const RTC::RtpEncodingParameters::Profile profile) void Consumer::SetSourcePreferredProfile(const RTC::RtpEncodingParameters::Profile profile)
...@@ -378,7 +378,7 @@ namespace RTC ...@@ -378,7 +378,7 @@ namespace RTC
"source preferred profile set [profile:%s]", "source preferred profile set [profile:%s]",
RTC::RtpEncodingParameters::profile2String[profile].c_str()); RTC::RtpEncodingParameters::profile2String[profile].c_str());
RecalculateTargetProfile(true /*forcePreferred*/); RecalculateTargetProfile();
} }
void Consumer::SetEncodingPreferences(const RTC::Codecs::EncodingContext::Preferences preferences) void Consumer::SetEncodingPreferences(const RTC::Codecs::EncodingContext::Preferences preferences)
...@@ -950,7 +950,7 @@ namespace RTC ...@@ -950,7 +950,7 @@ namespace RTC
delete rtxPacket; delete rtxPacket;
} }
void Consumer::RecalculateTargetProfile(bool forcePreferred) void Consumer::RecalculateTargetProfile()
{ {
MS_TRACE(); MS_TRACE();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论