Skip to content

fix(render): recover held network frames without fresh decode (#802) - #820

Merged
iamfatness merged 3 commits into
mainfrom
codex/network-held-preparation-802
Oct 7, 2026
Merged

iamfatness merged 3 commits into
mainfrom
codex/network-held-preparation-802

Conversation

@iamfatness

@iamfatness iamfatness commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Refs #802.

When an SRT/RTMP publisher stops, the decoder can wait for input while preserving valid CPU pixels. After preparation idle retirement or a replacement production consumer, that held token never refreshed until a new decode. Both real local SRT/RTMP controls fail replacement-consumer readiness with the same held source.

One preparation-only metadata worker per network adapter now refreshes stopped held tokens independently of decoder reads. It snapshots at most 64 channel descriptors per 50 ms pass, rotates larger sets, offers outside leaf locks, and commits only against matching CPU pointer, epoch, frame ID, observation time and prior token. Fresh decode wins. CPU/ISO bytes, source timing, decoder/audio counters and stalled-feed health remain unchanged; Program only polls descriptors. Shutdown joins the worker before channel retirement. Preparation off starts no worker.

Opt-in tests use real local FFmpeg H.264/AAC publishers, independent CPU-rendered pixel references, production consumer replacement, publisher restart/fresh epochs and source removal. Original setup failures (missing libx264), unselected-queue harness trial and stale-object trials remain retained rather than relabeled. The current harness selects arrivals while publication runs. Final head 7e65d7e passes both opt-in network tests and all 1,505 native tests. All 17 exact-head CI checks pass. Native tree aa7b6cd822fcc20d4c40dd8f0c2d35fc933a0a1a and binary hashes/source bundle are retained in artifacts/network-held-recovery-802-candidate.

This repairs held source preparation; it does not prove 60 fps output continuity, physical GPU reset, adapter migration, content latency, display/OS-camera delivery or installed/full-workload qualification. Defaults and installed beta remain unchanged. #802/#517 remain open; no beta is cut.

@iamfatness
iamfatness marked this pull request as ready for review October 7, 2026 22:35
@iamfatness
iamfatness merged commit a276770 into main Oct 7, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant