| 339 | } |
| 340 | |
| 341 | int64_t VideoCacheThread::computePrerollFrames(const Settings* settings) const |
| 342 | { |
| 343 | if (!settings) { |
| 344 | return 0; |
| 345 | } |
| 346 | int64_t min_frames = settings->VIDEO_CACHE_MIN_PREROLL_FRAMES; |
| 347 | int64_t max_frames = settings->VIDEO_CACHE_MAX_PREROLL_FRAMES; |
| 348 | if (min_frames < 0) { |
| 349 | return 0; |
| 350 | } |
| 351 | if (max_frames > 0 && min_frames > max_frames) { |
| 352 | min_frames = max_frames; |
| 353 | } |
| 354 | return min_frames; |
| 355 | } |
| 356 | |
| 357 | int64_t VideoCacheThread::resolveTimelineEnd() const |
| 358 | { |
nothing calls this directly
no outgoing calls
no test coverage detected