generateKeyFrame: use GetParametersInternal
since the externally visible GetParameters() method modifies the last transaction id which is neither required nor desirable for generateKeyFrame. BUG=chromium:1354101 Change-Id: Iae9ea36f78258d3be6d02eb2858c8bf9c4c672c8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/286740 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Philipp Hancke <phancke@microsoft.com> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38911}
This commit is contained in:
parent
794d599741
commit
fa67bcc27a
@ -795,7 +795,7 @@ RTCError VideoRtpSender::GenerateKeyFrame(
|
|||||||
const std::vector<std::string>& rids) {
|
const std::vector<std::string>& rids) {
|
||||||
RTC_DCHECK_RUN_ON(signaling_thread_);
|
RTC_DCHECK_RUN_ON(signaling_thread_);
|
||||||
if (video_media_channel() && ssrc_ && !stopped_) {
|
if (video_media_channel() && ssrc_ && !stopped_) {
|
||||||
auto parameters = GetParameters();
|
const auto parameters = GetParametersInternal();
|
||||||
for (const auto& rid : rids) {
|
for (const auto& rid : rids) {
|
||||||
if (rid.empty()) {
|
if (rid.empty()) {
|
||||||
LOG_AND_RETURN_ERROR(RTCErrorType::INVALID_PARAMETER,
|
LOG_AND_RETURN_ERROR(RTCErrorType::INVALID_PARAMETER,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user