MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / run

Method run

src/Qt/VideoPlaybackThread.cpp:45–68  ·  view source on GitHub ↗

Start the thread

Source from the content-addressed store, hash-verified

43
44 // Start the thread
45 void VideoPlaybackThread::run()
46 {
47 while (!threadShouldExit()) {
48 // Make other threads wait on the render event
49 bool need_render = render.wait(500);
50
51 if (need_render && frame)
52 {
53 // Debug
54 ZmqLogger::Instance()->AppendDebugMethod(
55 "VideoPlaybackThread::run (before render)",
56 "frame->number", frame->number,
57 "need_render", need_render);
58
59 // Render the frame to the screen
60 renderer->paint(frame);
61 }
62
63 // Signal to other threads that the rendered event has completed
64 rendered.signal();
65 }
66
67 return;
68 }
69}

Callers

nothing calls this directly

Calls 2

AppendDebugMethodMethod · 0.80
paintMethod · 0.80

Tested by

no test coverage detected