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
@@ -239,7 +239,7 @@ void video_encoder::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo info
// Wait for encoder to be done
present_slot = (present_slot + 1) % num_slots;
state[present_slot].wait(busy);
if (idr->should_skip(frame_index))
if (idr->should_skip(frame_index, stream_idx))
{
state[present_slot] = skip;
return;