MCPcopy Create free account
hub / github.com/MaartenBaert/ssr / StopThread

Method StopThread

src/AV/Output/BaseEncoder.cpp:92–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void BaseEncoder::StopThread() {
93
94 // tell the thread to stop
95 if(m_thread.joinable()) {
96 Logger::LogInfo("[BaseEncoder::~BaseEncoder] " + Logger::tr("Stopping encoder thread ..."));
97 m_should_stop = true;
98 m_thread.join();
99 }
100
101 // free everything
102 Free();
103
104}
105
106double BaseEncoder::GetActualFrameRate() {
107 SharedLock lock(&m_shared_data);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected