Remove ReceiveCodec() getters from VideoCodingModule.
The getters are not used and the implementation cannot be guaranteed to return a correct value except when called synchronously from the decoding thread while decoding. The methods as is imply that the implementation needs to offer some sort of synchronization, and that's not desirable. BUG=webrtc:7328 R=stefan@webrtc.org Review-Url: https://codereview.webrtc.org/2741853008 . Cr-Commit-Position: refs/heads/master@{#17233}
This commit is contained in:
@ -449,22 +449,6 @@ bool VCMCodecDataBase::DeregisterReceiveCodec(uint8_t payload_type) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool VCMCodecDataBase::ReceiveCodec(VideoCodec* current_receive_codec) const {
|
||||
RTC_DCHECK(current_receive_codec);
|
||||
if (!ptr_decoder_) {
|
||||
return false;
|
||||
}
|
||||
memcpy(current_receive_codec, &receive_codec_, sizeof(VideoCodec));
|
||||
return true;
|
||||
}
|
||||
|
||||
VideoCodecType VCMCodecDataBase::ReceiveCodec() const {
|
||||
if (!ptr_decoder_) {
|
||||
return kVideoCodecUnknown;
|
||||
}
|
||||
return receive_codec_.codecType;
|
||||
}
|
||||
|
||||
VCMGenericDecoder* VCMCodecDataBase::GetDecoder(
|
||||
const VCMEncodedFrame& frame,
|
||||
VCMDecodedFrameCallback* decoded_frame_callback) {
|
||||
|
||||
Reference in New Issue
Block a user