| 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) |
nothing calls this directly
no test coverage detected