Explicetly set task queue factory in fuzzers/RtpReplayer
Bug: chromium:951552, chromium:951554, webrtc:10284 Change-Id: I52771bc486a6e9e7afbbae0af40a1eddf98ca487 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132540 Reviewed-by: Alex Loiko <aleloi@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27586}
This commit is contained in:
parent
63b0b2cf30
commit
98793e5662
@ -25,6 +25,7 @@ rtc_source_set("rtp_replayer") {
|
||||
"../../../rtc_base:checks",
|
||||
"../../../rtc_base:rtc_base_approved",
|
||||
"../../../rtc_base:rtc_json",
|
||||
"../../../rtc_base:rtc_task_queue_stdlib",
|
||||
"../../../system_wrappers",
|
||||
"../../../test:call_config_utils",
|
||||
"../../../test:fake_video_codecs",
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
#include "absl/memory/memory.h"
|
||||
#include "modules/rtp_rtcp/include/rtp_header_parser.h"
|
||||
#include "rtc_base/strings/json.h"
|
||||
#include "rtc_base/task_queue_stdlib.h"
|
||||
#include "system_wrappers/include/clock.h"
|
||||
#include "system_wrappers/include/sleep.h"
|
||||
#include "test/call_config_utils.h"
|
||||
@ -51,7 +52,12 @@ void RtpReplayer::Replay(
|
||||
|
||||
// Setup the video streams based on the configuration.
|
||||
webrtc::RtcEventLogNullImpl event_log;
|
||||
// TODO(bugs.webrtc.org/10284): Replace with DefaultTaskQueueFactory when
|
||||
// chromium stops hijacking it.
|
||||
std::unique_ptr<TaskQueueFactory> task_queue_factory =
|
||||
CreateTaskQueueStdlibFactory();
|
||||
Call::Config call_config(&event_log);
|
||||
call_config.task_queue_factory = task_queue_factory.get();
|
||||
std::unique_ptr<Call> call(Call::Create(call_config));
|
||||
SetupVideoStreams(&receive_stream_configs, stream_state.get(), call.get());
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user