Move sendtask after decoded frame writer is initialized.
Bug: webrtc:13293 Change-Id: Ic71f92a5204715480e207f908f70ffff63e31279 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/235580 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Ying Wang <yinwa@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35235}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
b141c162ee
commit
d7dd0aa9ee
@ -697,15 +697,6 @@ bool VideoCodecTestFixtureImpl::SetUpAndInitObjects(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
task_queue->SendTask(
|
|
||||||
[this]() {
|
|
||||||
processor_ = std::make_unique<VideoProcessor>(
|
|
||||||
encoder_.get(), &decoders_, source_frame_reader_.get(), config_,
|
|
||||||
&stats_, &encoded_frame_writers_,
|
|
||||||
decoded_frame_writers_.empty() ? nullptr : &decoded_frame_writers_);
|
|
||||||
},
|
|
||||||
RTC_FROM_HERE);
|
|
||||||
|
|
||||||
if (config_.visualization_params.save_encoded_ivf ||
|
if (config_.visualization_params.save_encoded_ivf ||
|
||||||
config_.visualization_params.save_decoded_y4m) {
|
config_.visualization_params.save_decoded_y4m) {
|
||||||
std::string encoder_name = GetCodecName(task_queue, /*is_encoder=*/true);
|
std::string encoder_name = GetCodecName(task_queue, /*is_encoder=*/true);
|
||||||
@ -748,6 +739,14 @@ bool VideoCodecTestFixtureImpl::SetUpAndInitObjects(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task_queue->SendTask(
|
||||||
|
[this]() {
|
||||||
|
processor_ = std::make_unique<VideoProcessor>(
|
||||||
|
encoder_.get(), &decoders_, source_frame_reader_.get(), config_,
|
||||||
|
&stats_, &encoded_frame_writers_,
|
||||||
|
decoded_frame_writers_.empty() ? nullptr : &decoded_frame_writers_);
|
||||||
|
},
|
||||||
|
RTC_FROM_HERE);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user