Repository navigation
Conversation
Jellyfin-protocol transcodes on the API host built their TranscodeOpts and the transcode manager's runtime config without playback.hw_device. Execution then fell back to the first verified or first render node, so a multi-device list was never balanced for these sessions, and a single configured device was ignored while jellycompat's own tone-map probe tested it. Read the same boot config the probe reads for both the start opts and the reconstruction runtime. Remote dispatch is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review Summary: ✅ CompletedThis 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. |
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (gpt-6.2-sol, reviewed b155aff)
One finding inline. I verified the device selection path in source and checked that a path can pass stat while opening it fails. I did not run the scenario on a GPU.
AI disclosure: gpt-6.2-sol via Codex.
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (no client-visible change)
When
playback.hw_deviceis set, Jellyfin clients' transcodes on the API host ignore it. Native playback passes the configured device to execution, but jellycompat leavesHWDeviceempty both when it starts a local transcode and in the runtime config its transcode manager uses to rebuild sessions. Execution then picks the device detection verified, or the first render node.Two things go wrong for hosts with a configured device:
hw_accel(qsv or vaapi) and one configured device, the transcode opens the first render node instead. Jellyfin-client tone-map planning probes the configured device, so the plan and the GPU that runs it can differ.Approach
A new
localHWDevice()on the jellycompat playback handler returnsplayback.hw_devicefrom the handler's config, the same value the tone-map probe already reads. The local start options and the transcode manager's runtime config both use it, matching the native path.Remote dispatch is unchanged. A remote node still resolves its own device, and moving a session to another node still clears the recorded device.
Validation
hw_accel=vaapi, and one configured device. It checks the rebuild runtime config and the started session's resolved device. On the base it fails both checks. With only the start-path change reverted, the session opened the first render node instead of the configured one, which is the reported trigger.internal/jellycompatandinternal/playbacktest packages pass.make lint-changedreports 0 issues.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/jellycompat-hw-device/
Risks
A host that sets
playback.hw_devicenow runs Jellyfin-client transcodes on that device, as native playback already does. Hosts without it see no change.playback.hw_devicestays restart-required for this handler, as before.Checklist
Council review
Ran as a follow-up of the review of #5920: no plan round (one-field wiring fix, skipped as mechanical) and one background reviewer.
Rounds: 1, last reviewed b155aff
Answered: S1 (the allocator can pick a configured render node the process can't open) predates this change; native playback hits it through the same allocator. Filed as #5924, to follow #5920.
AI Disclosure
🤖 Generated with Claude Code