| 575 | } |
| 576 | |
| 577 | void TearDownEncoder() { |
| 578 | // Stop the worker thread first |
| 579 | if (worker_thread_) { |
| 580 | worker_thread_->Join(); |
| 581 | worker_thread_ = nullptr; |
| 582 | } |
| 583 | |
| 584 | // Destroy OpenH264 encoder |
| 585 | if (encoder_) { |
| 586 | WelsDestroySVCEncoder(encoder_); |
| 587 | encoder_ = nullptr; |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | void TrySyncRunOnMainThread(GMPTask* aTask) { |
| 592 | if (!shutting_down && g_platform_api) { |
nothing calls this directly
no test coverage detected