| 169 | } |
| 170 | |
| 171 | void VideoCacheInfoWidget::onUpdateCacheStatus() |
| 172 | { |
| 173 | if (playlist == nullptr || cache == nullptr) |
| 174 | return; |
| 175 | if (!isVisible()) |
| 176 | return; |
| 177 | |
| 178 | playlist->updateCachingStatus(); |
| 179 | |
| 180 | DEBUG_CACHINGINFO("VideoCacheInfoWidget::updateCacheStatus"); |
| 181 | statusWidget->updateStatus(playlist, cacheRateInBytesPerMs); |
| 182 | |
| 183 | QStringList statusText = cache->getCacheStatusText(); |
| 184 | cachingInfoLabel->setText(statusText.join("\n")); |
| 185 | } |
nothing calls this directly
no test coverage detected