Deprecate RtpRtcp::SetKeyFrameRequestMethod
Replaced by separate methods SendPictureLossIndication and SendFullIntraRequest. The split SetKeyFrameRequestMethod/RequestKeyFrame implicitly requires that the two methods are called on the same thread, to avoid a data race. After downstream code is updated, both deprecated methods and the member |ModuleRtpRtcpImpl::key_frame_req_method_| can be deleted. Bug: None Change-Id: I454f6d16b667f2306cba0dec467ddc183ad449c8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/140043 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28163}
This commit is contained in:
@ -717,11 +717,13 @@ int32_t ModuleRtpRtcpImpl::SetKeyFrameRequestMethod(
|
||||
int32_t ModuleRtpRtcpImpl::RequestKeyFrame() {
|
||||
switch (key_frame_req_method_) {
|
||||
case kKeyFrameReqPliRtcp:
|
||||
return SendRTCP(kRtcpPli);
|
||||
SendPictureLossIndication();
|
||||
break;
|
||||
case kKeyFrameReqFirRtcp:
|
||||
return SendRTCP(kRtcpFir);
|
||||
SendFullIntraRequest();
|
||||
break;
|
||||
}
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t ModuleRtpRtcpImpl::SendLossNotification(uint16_t last_decoded_seq_num,
|
||||
|
||||
Reference in New Issue
Block a user