Fix stats for encoder target bitrate when target rate is zero.
When the target bitrate is zero, currently VideoSendStream.Stats.target_media_bitrate_bps show the last set rate before the target was set to zero. BUG=webrtc::5687 b/29574845 Review-Url: https://codereview.webrtc.org/2122743003 Cr-Commit-Position: refs/heads/master@{#13386}
This commit is contained in:
@ -126,12 +126,6 @@ class VCMProtectionCallback {
|
||||
virtual ~VCMProtectionCallback() {}
|
||||
};
|
||||
|
||||
class VideoEncoderRateObserver {
|
||||
public:
|
||||
virtual ~VideoEncoderRateObserver() {}
|
||||
virtual void OnSetRates(uint32_t bitrate_bps, int framerate) = 0;
|
||||
};
|
||||
|
||||
// Callback class used for telling the user about what frame type needed to
|
||||
// continue decoding.
|
||||
// Typically a key frame when the stream has been corrupted in some way.
|
||||
|
Reference in New Issue
Block a user