Rework vaapi/nvenc/x264 IDR handling

Fix race conditions with should_skip
detect if nothings goes out from decoder and issue an IDR
remove idr_received, go directly to running state
This commit is contained in:
Patrick Nicolas
2026-10-05 22:27:15 +02:00
parent 4ea97485cc
commit 2fc4708bc6
8 changed files with 54 additions and 39 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ public:
}
}
bool should_skip(uint64_t frame_id) override
bool should_skip(uint64_t frame_id, uint8_t) override
{
std::unique_lock lock(mutex);
bool pending = false; // has any data been sent?