Browse Source

Start portal encoder deadlines after the first permitted capture frame

master
evgeny 4 days ago
parent
commit
4a4397ace1
  1. 1
      tools/chatgui/src/stream_publish_engine.cpp
  2. 1
      tools/chatgui/tests/test_stream_publish.cpp

1
tools/chatgui/src/stream_publish_engine.cpp

@ -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);

1
tools/chatgui/tests/test_stream_publish.cpp

@ -17,6 +17,7 @@ extern "C" {
#include "u_async.h"
#include "chat/chat_core.h"
#include "stream/stream.h"
#include "stream/stream_member.h"
#include "debug_config.h"
#include "mem.h"
#include "sqlite3.h"

Loading…
Cancel
Save