Delete nack_enabled flag in encoder configuration.
This is a followup to cl https://webrtc-review.googlesource.com/71380, which reworked the way encoder resilience is done, and made the nack_enabled flag unused. Bug: webrtc:8830 Change-Id: I3de2508c97bc71e01c8f2232d16cd1f33e57fe4a Reviewed-on: https://webrtc-review.googlesource.com/69986 Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23080}
This commit is contained in:
@ -34,10 +34,20 @@ class VideoCodecInitializer {
|
||||
static bool SetupCodec(
|
||||
const VideoEncoderConfig& config,
|
||||
const std::vector<VideoStream>& streams,
|
||||
bool nack_enabled,
|
||||
VideoCodec* codec,
|
||||
std::unique_ptr<VideoBitrateAllocator>* bitrate_allocator);
|
||||
|
||||
// TODO(nisse): Deprecated, delete as soon as downstream projects are
|
||||
// updated.
|
||||
static bool SetupCodec(
|
||||
const VideoEncoderConfig& config,
|
||||
const std::vector<VideoStream>& streams,
|
||||
bool /* nack_enabled */,
|
||||
VideoCodec* codec,
|
||||
std::unique_ptr<VideoBitrateAllocator>* bitrate_allocator) {
|
||||
return SetupCodec(config, streams, codec, bitrate_allocator);
|
||||
}
|
||||
|
||||
// Create a bitrate allocator for the specified codec.
|
||||
static std::unique_ptr<VideoBitrateAllocator> CreateBitrateAllocator(
|
||||
const VideoCodec& codec);
|
||||
@ -45,8 +55,7 @@ class VideoCodecInitializer {
|
||||
private:
|
||||
static VideoCodec VideoEncoderConfigToVideoCodec(
|
||||
const VideoEncoderConfig& config,
|
||||
const std::vector<VideoStream>& streams,
|
||||
bool nack_enabled);
|
||||
const std::vector<VideoStream>& streams);
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
Reference in New Issue
Block a user