Fix compilation errors preventing multi-fallback capture build#33
Merged
infinityabundance merged 6 commits intomainfrom Feb 13, 2026
Merged
Fix compilation errors preventing multi-fallback capture build#33infinityabundance merged 6 commits intomainfrom
infinityabundance merged 6 commits intomainfrom
Conversation
…io_playback_alsa_available function Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…BLOCK flag Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…de review Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…ure system working Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add multi-fallback display capture implementation
Fix compilation errors preventing multi-fallback capture build
Feb 13, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three compilation errors blocked building the existing DRM → X11 → Dummy capture fallback system. Fixed variable redeclarations and missing function implementation.
Details
What changed?
1.
src/vaapi_encoder.c:228- DuplicateVAStatus statusdeclaration2.
src/service.c:250- Conflicting loop variable in encoder fallback3.
src/audio_playback.c- Missing linker symbol4.
.gitignore- Exclude CodeQL build artifactsRationale
The three-tier capture fallback (DRM/KMS → X11 SHM → Dummy) was fully implemented but couldn't build. Minimal surgical fixes restore buildability without touching capture logic.
Aligns with RootStream's simplicity goal - no workarounds, just fix the errors.
Testing
make)Notes
Original prompt
PHASE 1: Multi-Fallback Display Capture Implementation
Current State
The project has a working DRM/KMS capture implementation in
src/drm_capture.c, but if DRM fails (VM, broken drivers, no permissions), the entire application exits with no recovery path.Problem
In
service_run_host():Systems affected:
Solution: Three-Tier Capture Fallback
Tier 1: DRM/KMS (Primary)
src/drm_capture.c(already exists)Tier 2: X11 SHM Fallback (New)
src/x11_capture.c(NEW)Tier 3: Dummy Test Pattern (New)
src/dummy_capture.c(NEW)Implementation Details
File 1:
src/x11_capture.c- X11 SHM Screen Grab