Add dummy implementation for SetCodecPReferences.

The proper signature of the function should return an RTCError,
but due to all the classes in external projects implementing it with
this signature, we need a many steps process to update this.

- Add an implementation for the pure virtual method
- Update projects not to override it
- Update the function signature
- Update projects to override it with the right signature
- Remove the dummy implementation from the interface

Bug: webrtc:9777
Change-Id: Idf99216792b4ad13339e4e8be6f7b735bb6b64e7
Reviewed-on: https://webrtc-review.googlesource.com/101564
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24807}
This commit is contained in:
Florent Castelli
2018-09-24 19:10:40 +02:00
committed by Commit Bot
parent 60d629f3fc
commit 380789761c
2 changed files with 6 additions and 2 deletions

View File

@ -23,4 +23,9 @@ RtpTransceiverInterface::fired_direction() const {
return absl::nullopt;
}
void RtpTransceiverInterface::SetCodecPreferences(
rtc::ArrayView<RtpCodecCapability>) {
RTC_NOTREACHED() << "Not implemented";
}
} // namespace webrtc