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:
@ -360,22 +360,6 @@ class VideoCodingModule : public Module {
|
||||
// < 0, on error.
|
||||
virtual int32_t Decode(uint16_t maxWaitTimeMs = 200) = 0;
|
||||
|
||||
// API to get the codec which is currently used for decoding by the module.
|
||||
//
|
||||
// Input:
|
||||
// - currentReceiveCodec : Settings for the codec to be registered.
|
||||
//
|
||||
// Return value : VCM_OK, on success.
|
||||
// < 0, on error.
|
||||
virtual int32_t ReceiveCodec(VideoCodec* currentReceiveCodec) const = 0;
|
||||
|
||||
// API to get the codec type currently used for decoding by the module.
|
||||
//
|
||||
// Return value : codecy type, on success.
|
||||
// kVideoCodecUnknown, on error or if no receive codec is
|
||||
// registered
|
||||
virtual VideoCodecType ReceiveCodec() const = 0;
|
||||
|
||||
// Insert a parsed packet into the receiver side of the module. Will be placed
|
||||
// in the
|
||||
// jitter buffer waiting for the frame to become complete. Returns as soon as
|
||||
|
||||
Reference in New Issue
Block a user