Stop video/audio playback
| 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 | } |