MCPcopy Create free account
hub / github.com/apohl79/audiogridder / run

Method run

Server/Source/ScreenWorker.cpp:33–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void ScreenWorker::run() {
34 traceScope();
35 logln("screen processor started");
36
37 if (auto srv = getApp()->getServer()) {
38 if (srv->getScreenCapturingFFmpeg()) {
39 runFFmpeg();
40 } else if (!srv->getScreenCapturingOff()) {
41 runNative();
42 } else {
43 while (!threadShouldExit() && nullptr != m_socket && m_socket->isConnected()) {
44 sleepExitAware(100);
45 }
46 }
47 } else {
48 m_error = "no server object";
49 }
50
51 if (m_error.isNotEmpty()) {
52 logln("screen processor error: " << m_error);
53 }
54
55 logln("screen processor terminated");
56}
57
58void ScreenWorker::runFFmpeg() {
59 traceScope();

Callers

nothing calls this directly

Calls 3

getScreenCapturingOffMethod · 0.80
getServerMethod · 0.45

Tested by

no test coverage detected