Fix crash with rtc_event_log in video_loopback
Because RtcEventLog is created and stopped in different threads, SequencedTaskChecker causes failure at the end of a test. Bug: none Change-Id: Ibaec3162eedebd180b101ec46a171efee5fe667e Reviewed-on: https://webrtc-review.googlesource.com/5401 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20078}
This commit is contained in:
parent
8e56076bb4
commit
2c72fe8a2a
@ -1912,6 +1912,8 @@ void VideoQualityTest::RunWithAnalyzer(const Params& params) {
|
||||
|
||||
analyzer->Wait();
|
||||
|
||||
event_log_->StopLogging();
|
||||
|
||||
task_queue_.SendTask([&]() {
|
||||
for (std::unique_ptr<test::VideoCapturer>& video_caputurer :
|
||||
thumbnail_capturers_)
|
||||
@ -1929,7 +1931,6 @@ void VideoQualityTest::RunWithAnalyzer(const Params& params) {
|
||||
DestroyStreams();
|
||||
DestroyThumbnailStreams();
|
||||
|
||||
event_log_->StopLogging();
|
||||
if (graph_data_output_file)
|
||||
fclose(graph_data_output_file);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user