| 158 | } |
| 159 | |
| 160 | void loadingWorker::processLoadingJobInternal(bool playing, bool loadRawData) |
| 161 | { |
| 162 | Q_ASSERT_X(currentCacheItem != nullptr, Q_FUNC_INFO, "The set job is nullptr"); |
| 163 | Q_ASSERT_X((!currentCacheItem->properties().isIndexedByFrame() || currentFrame >= 0), |
| 164 | Q_FUNC_INFO, |
| 165 | "The set frame index is invalid"); |
| 166 | Q_ASSERT_X( |
| 167 | !currentCacheItem->taggedForDeletion(), Q_FUNC_INFO, "The set job was tagged for deletion"); |
| 168 | DEBUG_JOBS(Q_FUNC_INFO); |
| 169 | |
| 170 | // Load the frame of the item that was given to us. |
| 171 | // This is performed in the thread (the loading thread with higher priority. |
| 172 | currentCacheItem->loadFrame(currentFrame, playing, loadRawData); |
| 173 | |
| 174 | currentCacheItem = nullptr; |
| 175 | emit loadingFinished(); |
| 176 | DEBUG_JOBS("loadingWorker::processLoadingJobInternal emit loadingFinished"); |
| 177 | } |
| 178 | |
| 179 | /// -------------------------- VideoCache::loadingThread -------------------- |
| 180 |
nothing calls this directly
no test coverage detected