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

Method Stop

src/QtPlayer.cpp:186–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 }
185
186 void QtPlayer::Stop()
187 {
188 // Change mode to stopped
189 mode = PLAYBACK_STOPPED;
190
191 // Notify threads of stopping
192 if (reader && threads_started) {
193 p->videoCache->Stop();
194 p->audioPlayback->Stop();
195
196 // Kill all threads
197 p->stopPlayback();
198 }
199
200 p->video_position = 0;
201 threads_started = false;
202 }
203
204 // Set the reader object
205 void QtPlayer::Reader(openshot::ReaderBase *new_reader)

Callers

nothing calls this directly

Calls 1

stopPlaybackMethod · 0.80

Tested by

no test coverage detected