| 90 | } |
| 91 | |
| 92 | void 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 | |
| 106 | double BaseEncoder::GetActualFrameRate() { |
| 107 | SharedLock lock(&m_shared_data); |
nothing calls this directly
no outgoing calls
no test coverage detected