Repository navigation
fix(linux): clear the keyframe latch when recovery replaces queued frames - #1414
TheWeaklessOne wants to merge 1 commit into
Conversation
…ames After a decoder queue overflow the recovery keyframe replaces the stale decode work. queue_video_command reported that as DroppedOldest, so the caller kept keyframe_requested and video_desynced set, and every later overflow believed a request was already pending: the stream froze until an IDR happened to arrive. Report the queued keyframe as Queued, including at the overflow boundary, and request the keyframe again if none has come within 250 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Folded into #1470 together with the other Linux decode fixes, rebased on |
A decoder queue overflow on Linux could freeze the stream for seconds. After an overflow the recovery keyframe replaces the stale decode work in the queue, and
queue_video_commandreported that asPushOutcome::DroppedOldest, although the keyframe itself was queued.run_embedded_linux_videoclearskeyframe_requestedandvideo_desyncedonly onQueued, so both stayed set. Every later overflow then saw a request already pending and sent none, and the stream stayed stuck until an IDR happened to arrive.Changes:
Queued, in both the recovery path and the overflow-boundary path.overflow_preserves_recovery_keyframe_and_rejects_inter_frames_until_it_arrivesasserted the old outcome and is updated.linux_keyframe_retry_due), so one lost request cannot leave the stream frozen.Verification:
keyframe_at_the_overflow_boundary_reports_itself_queuedandlinux_keyframe_retry_rearms_after_the_interval.cargo test --release -p opennow-streamer-platform-linux --features ffmpeg-bundled,vaapi(the features the app build uses) on cleandevwith this change: 253 passed, against 252 on cleandev. The one failure,fixed_audio_output_never_falls_back_and_stays_isolated, also fails on cleandevon that device (ALSA device enumeration returns -2).opennow-streamer-platform: 208 passed.🤖 Generated with Claude Code