Measure stream viewer request and worker delays

This commit is contained in:
evgeny committed 2026-10-20 22:30:04 +02:00
1 parent 7ce60ca0f2
commit c6f7d50838
3 files changed
+19 -4

No files matched your search

+1 -1
View File
@@ -293,7 +293,7 @@ void StreamPlayerWindow::decode() {
/* Забираем выход прежде следующего входа. При FIN тот же проход дренирует codec до EOF. */
auto drainVideo = [&] {
if (!decoder) return;
for (unsigned work = 0; work < 8 && p.running; work++) {
for (unsigned attempt = 0; attempt < 8 && p.running; attempt++) {
{ std::lock_guard<std::mutex> guard(p.lock); if (p.videos.size() >= 2) return; }
int64_t codecAt = nowUs();
int result = avcodec_receive_frame(decoder, frame);