Start portal encoder deadlines after the first permitted capture frame

This commit is contained in:
evgeny committed 2026-10-14 10:20:50 +02:00
1 parent 240568870a
commit 4a4397ace1
2 files changed
+2

No files matched your search

@@ -131,6 +131,7 @@ bool StreamPublishEngine::openSource(const StreamPublishConfig& config) {
m->backendAnchor = now;
DEBUG_WARN(DEBUG_CATEGORY_VIDEO, "desktop capture has no source PTS; using monotonic callback estimate");
}
if (m->framePts < 0 && m->wanted.source.id == "portal") m->started = monotonicUs();
m->frame = m->previewFrame = frame; m->framePts = std::max<int64_t>(1, now - m->origin); m->frameGeneration = m->generation;
m->wake.notify_all();
}, Qt::DirectConnection);