Skip to content

refactor(libobs): extract source filter backup serialization (Refs #4767) - #4814

Merged
zackees merged 2 commits into
masterfrom
test/extract-filter-backup
Nov 13, 2026
Merged

zackees merged 2 commits into
masterfrom
test/extract-filter-backup

Conversation

@zackees

@zackees zackees commented Nov 13, 2026

Copy link
Copy Markdown
Member

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.

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
zackees marked this pull request as ready for review November 13, 2026 05:08
@zackees
zackees enabled auto-merge November 13, 2026 05:09
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
Merged via the queue into master with commit f2046b8 Nov 13, 2026
42 checks passed
@zackees
zackees deleted the test/extract-filter-backup branch November 13, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant