MCPcopy Create free account
hub / github.com/cisco/openh264 / TearDownEncoder

Method TearDownEncoder

module/gmp-openh264.cpp:577–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

WelsDestroySVCEncoderFunction · 0.85

Tested by

no test coverage detected