mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 22:00:47 +01:00
OnLossNotification() receives references
A typo in a previous CL made OnLossNotification() accept its single argument as a const-value, rather than a const-reference. Bug: webrtc:10501 Change-Id: I5e6f9c79f15205b75ec90a53d3fccf3dd9927e33 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133343 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Elad Alon <eladalon@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27659}
This commit is contained in:
parent
491d29448e
commit
123ee9be8f
7 changed files with 7 additions and 7 deletions
|
@ -140,7 +140,7 @@ class Vp8FrameBufferController {
|
||||||
|
|
||||||
// Called when a loss notification is received.
|
// Called when a loss notification is received.
|
||||||
virtual void OnLossNotification(
|
virtual void OnLossNotification(
|
||||||
const VideoEncoder::LossNotification loss_notification) = 0;
|
const VideoEncoder::LossNotification& loss_notification) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Interface for a factory of Vp8FrameBufferController instances.
|
// Interface for a factory of Vp8FrameBufferController instances.
|
||||||
|
|
|
@ -89,7 +89,7 @@ void Vp8TemporalLayers::OnRttUpdate(int64_t rtt_ms) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Vp8TemporalLayers::OnLossNotification(
|
void Vp8TemporalLayers::OnLossNotification(
|
||||||
const VideoEncoder::LossNotification loss_notification) {
|
const VideoEncoder::LossNotification& loss_notification) {
|
||||||
for (auto& controller : controllers_) {
|
for (auto& controller : controllers_) {
|
||||||
controller->OnLossNotification(loss_notification);
|
controller->OnLossNotification(loss_notification);
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ class Vp8TemporalLayers final : public Vp8FrameBufferController {
|
||||||
void OnRttUpdate(int64_t rtt_ms) override;
|
void OnRttUpdate(int64_t rtt_ms) override;
|
||||||
|
|
||||||
void OnLossNotification(
|
void OnLossNotification(
|
||||||
const VideoEncoder::LossNotification loss_notification) override;
|
const VideoEncoder::LossNotification& loss_notification) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::unique_ptr<Vp8FrameBufferController>> controllers_;
|
std::vector<std::unique_ptr<Vp8FrameBufferController>> controllers_;
|
||||||
|
|
|
@ -552,7 +552,7 @@ void DefaultTemporalLayers::OnPacketLossRateUpdate(float packet_loss_rate) {}
|
||||||
void DefaultTemporalLayers::OnRttUpdate(int64_t rtt_ms) {}
|
void DefaultTemporalLayers::OnRttUpdate(int64_t rtt_ms) {}
|
||||||
|
|
||||||
void DefaultTemporalLayers::OnLossNotification(
|
void DefaultTemporalLayers::OnLossNotification(
|
||||||
const VideoEncoder::LossNotification loss_notification) {}
|
const VideoEncoder::LossNotification& loss_notification) {}
|
||||||
|
|
||||||
TemplateStructure DefaultTemporalLayers::GetTemplateStructure(
|
TemplateStructure DefaultTemporalLayers::GetTemplateStructure(
|
||||||
int num_layers) const {
|
int num_layers) const {
|
||||||
|
|
|
@ -64,7 +64,7 @@ class DefaultTemporalLayers final : public Vp8FrameBufferController {
|
||||||
void OnRttUpdate(int64_t rtt_ms) override;
|
void OnRttUpdate(int64_t rtt_ms) override;
|
||||||
|
|
||||||
void OnLossNotification(
|
void OnLossNotification(
|
||||||
const VideoEncoder::LossNotification loss_notification) override;
|
const VideoEncoder::LossNotification& loss_notification) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct DependencyInfo {
|
struct DependencyInfo {
|
||||||
|
|
|
@ -394,7 +394,7 @@ void ScreenshareLayers::OnPacketLossRateUpdate(float packet_loss_rate) {}
|
||||||
void ScreenshareLayers::OnRttUpdate(int64_t rtt_ms) {}
|
void ScreenshareLayers::OnRttUpdate(int64_t rtt_ms) {}
|
||||||
|
|
||||||
void ScreenshareLayers::OnLossNotification(
|
void ScreenshareLayers::OnLossNotification(
|
||||||
const VideoEncoder::LossNotification loss_notification) {}
|
const VideoEncoder::LossNotification& loss_notification) {}
|
||||||
|
|
||||||
TemplateStructure ScreenshareLayers::GetTemplateStructure(
|
TemplateStructure ScreenshareLayers::GetTemplateStructure(
|
||||||
int num_layers) const {
|
int num_layers) const {
|
||||||
|
|
|
@ -68,7 +68,7 @@ class ScreenshareLayers final : public Vp8FrameBufferController {
|
||||||
void OnRttUpdate(int64_t rtt_ms) override;
|
void OnRttUpdate(int64_t rtt_ms) override;
|
||||||
|
|
||||||
void OnLossNotification(
|
void OnLossNotification(
|
||||||
const VideoEncoder::LossNotification loss_notification) override;
|
const VideoEncoder::LossNotification& loss_notification) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum class TemporalLayerState : int { kDrop, kTl0, kTl1, kTl1Sync };
|
enum class TemporalLayerState : int { kDrop, kTl0, kTl1, kTl1Sync };
|
||||||
|
|
Loading…
Reference in a new issue