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

Method stopPlayback

src/Qt/PlayerPrivate.cpp:210–216  ·  view source on GitHub ↗

Stop video/audio playback

Source from the content-addressed store, hash-verified

208
209 // Stop video/audio playback
210 void PlayerPrivate::stopPlayback()
211 {
212 if (videoCache->isThreadRunning() && reader->info.has_video) videoCache->stopThread(max_sleep_ms);
213 if (audioPlayback->isThreadRunning() && reader->info.has_audio) audioPlayback->stopThread(max_sleep_ms);
214 if (videoPlayback->isThreadRunning() && reader->info.has_video) videoPlayback->stopThread(max_sleep_ms);
215 if (isThreadRunning()) stopThread(max_sleep_ms);
216 }
217
218}

Callers 1

StopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected