diff --git a/pc/test/fakeperiodicvideocapturer.h b/pc/test/fakeperiodicvideocapturer.h index e236164a56..e9eb47587c 100644 --- a/pc/test/fakeperiodicvideocapturer.h +++ b/pc/test/fakeperiodicvideocapturer.h @@ -42,6 +42,7 @@ class FakePeriodicVideoCapturer ~FakePeriodicVideoCapturer() override { RTC_DCHECK(main_thread_checker_.CalledOnValidThread()); + StopFrameDelivery(); } // Workaround method for tests to allow stopping frame delivery directly.