Repository navigation
refactor(libobs): extract source filter backup serialization (Refs #4767) - #4814
Merged
Merged
Conversation
Pin NULL rejection, empty-array independence, forward serialization and contents, mutex scope, retained lifetimes and temporary reference balance against both current libobs implementations. GCC build and Clang -Wformat-nonliteral -Werror pass; five cases pass in C reference and hybrid. No Rust swap in this prerequisite.
) Move only obs_source_backup_filters verbatim into its own implementation and unported unity group using the existing libobs PCH. Keep restore, duplication, filter mutation, source types and setters untouched. Characterization first passed against hybrid and C reference; a temporary reverse-order mutant failed forward_order_and_ownership (abg != gba) before restoring the original function.
zackees
marked this pull request as ready for review
November 13, 2026 05:08
zackees
enabled auto-merge
November 13, 2026 05:09
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 13, 2026
This was referenced Nov 14, 2026
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.
Refs #4767
This C-only prerequisite characterizes obs_source_backup_filters, then moves that function verbatim into obs-source-filter-backup.c.h and a dedicated unity group. It preserves NULL diagnostics, independently owned empty arrays, forward filter order, disabled filters and saved settings, mutex behavior, array/item lifetimes, and reference balance. Restore, duplication, filter mutation, and setters stay outside this unit. The Rust swap remains follow-up #4782.
The producer passed five C cases against hybrid libobs and libobs-c-reference before and after extraction, with identical dynamic exports. A temporary reverse-order mutant failed forward_order_and_ownership and was restored before extraction. GCC builds, strict Clang compilation, native_build contracts, graph checks, formatting, and full lint passed on the original branch. Rust RED/GREEN and differential coverage belong to the later swap. No public header, existing C test, WebSocket plugin, or public behavior changes.
Rebased onto current master after the vertexbuffer, canvas-move, and scene-transform prerequisites merged, retaining both disjoint source-list entries. The characterization patch is unchanged. Landing checks passed: soldr formatting, all 275 native_build tests plus two child probes, graph sorting, and full lint (74.6 seconds). The installed attestation client cannot parse the current data/swift manifest tags, so ./push falls back to ordinary hosted PR CI; no client evidence is claimed.