Fix RtpReplayer so what vp9 fuzzer would work
Replayer isn't triggered in any pre- or post-submit checks and is built only as a part of fuzzers. Therefore it got out of sync with the requirement of Call::Config::trials being set. Bug: chromium:1030755 Change-Id: I467a5fa19137020f6fc748b6adb6f82a8a88f9d1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169847 Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30695}
This commit is contained in:

committed by
Commit Bot

parent
987ef48258
commit
0360dc490b
@ -18,6 +18,7 @@ rtc_library("rtp_replayer") {
|
||||
"../../../api/rtc_event_log",
|
||||
"../../../api/task_queue:default_task_queue_factory",
|
||||
"../../../api/test/video:function_video_factory",
|
||||
"../../../api/transport:field_trial_based_config",
|
||||
"../../../api/video_codecs:video_codecs_api",
|
||||
"../../../call",
|
||||
"../../../call:call_interfaces",
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "api/task_queue/default_task_queue_factory.h"
|
||||
#include "api/transport/field_trial_based_config.h"
|
||||
#include "rtc_base/strings/json.h"
|
||||
#include "system_wrappers/include/clock.h"
|
||||
#include "test/call_config_utils.h"
|
||||
@ -62,6 +63,8 @@ void RtpReplayer::Replay(
|
||||
CreateDefaultTaskQueueFactory();
|
||||
Call::Config call_config(&event_log);
|
||||
call_config.task_queue_factory = task_queue_factory.get();
|
||||
FieldTrialBasedConfig field_trials;
|
||||
call_config.trials = &field_trials;
|
||||
std::unique_ptr<Call> call(Call::Create(call_config));
|
||||
SetupVideoStreams(&receive_stream_configs, stream_state.get(), call.get());
|
||||
|
||||
|
Reference in New Issue
Block a user