Skip to content

libobs: extract obs_scene_prune_sources verbatim (Refs #5731) - #5738

Draft
zackees wants to merge 2 commits into
masterfrom
scene-prune-extract-5731
Draft

zackees wants to merge 2 commits into
masterfrom
scene-prune-extract-5731

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Stacked on #5737: review only the commits after ec90ee1.

Refs #5731. Moves obs_scene_prune_sources byte-for-byte (signature and body) from obs-scene.c.h into libobs/obs-scenes-prune.c.h, included in the core-source unity group after obs-scene.c.h (alphabetical: the name sorts after obs-sceneitem-*, so the obs_scene_item_ptr_array_t typedef is already declared). The static walk update_transforms_and_prune_sources stays put behind a forward declaration (as #5701 did); video_lock/video_unlock are file-local copies of obs-scene.c.h's macros, undefined at the end (BUILD.md rule 5). No Rust, no signature/header/behaviour change.

Local evidence (head 1a73632): ci/test_build_groups.py 10/10; focused Tier 2 replay, unchanged test_scene_prune_sources + test_scene_bounds_type_range x3 on both libobs-c-reference and hybrid libobs, exports identical (1769); SOLDR_PORCELAIN=0 ./lint ok on this head. merge-tree clean vs #5629 #5630 #5650 #5674 #5701 #5708. Not run: full Tier 2, macOS/Windows.

Unarmed draft: admission closed at publish. Land after #5737.

🤖 Generated with Claude Code

Direct actual-library cmocka characterization: empty scene no-op, live
items kept in order, removed sources pruned with item_remove signalled
and the item detached, all removed sources pruned in one pass, and
removed sources inside a group pruned through the group walk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ci-Attestation: {"at":1795693549,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"f763de77f4f715f20ef798ef70ef2d74","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693549,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"ad44d33530a71628fb6b4f8252b96a73","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693549,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"bdfffda3cdba3f27a17870d68d893a2a","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693549,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"4babb666113e6ffc3f0171436680da69","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693453,"gate":"general/all/client-lint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"3ed249099fec0284464e2962bbbd4aee","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693549,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":94,"stamp":"07082f3a7cfb001b2c91aa19acd4263e","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"382594b6fd2ef5107ffe235fdf82d57a","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"7061e4a443452d74c8e29aa099de03a0","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"40e206fce5be9e812c326fd1ef3b5156","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"4e299496d65cfbce86a4ead9d6444605","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"9db19b9d9c537d6e1bfb74dca7d56949","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"bd9f2e033f53df922f510b7b5d687a59","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"8a207f2cf910448422ba6fdc486f3c9e","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"1977a3cc1598126e4ef5155a714b3592","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"3784af6eacf404d5ef65e2fbb09eb36b","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"0e84c4d411479e953008b9d4c414fadd","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693453,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"051d7b4c7e34efeb74da4670e9dfe0ef","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693454,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"beea4a29028839747d7b18acdf72e2ef8ded289cf03a248061faf735a7396b5c","lane":"client-lint","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":22,"stamp":"dcc699c0beeeda9345e7758e98f4ab55","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}
Ci-Attestation: {"at":1795693895,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"4a21f70d4c7a429c95a8880de5c76849ca06836ddb22e4c3ad89a18b61c17c21","lane":"client-test-x86_64-unknown-linux-gnu","parents":["e8cbea4dd0142b45229389ff871e402fda40050a"],"secs":344,"stamp":"b93b5ad683baa724f921fd452fe00723","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"e8cbea4dd0142b45229389ff871e402fda40050a","coverage":"all-tracked-applicable-files","diff":["test/cmocka/build/test-graph.json","test/cmocka/test_scene_prune_sources.c"],"head":"c17bcce862b2460d13d6f460bb5204902dd83b1b","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21503\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"75e09dea89f854394a09ff3b1ccbcd1715e26c9851c27e38674ca5e1e8b391e6","tree":"2bb7b1b68b7d380e64ae9b0065bb58f980353dfc"}}
Moves the function body unchanged into libobs/obs-scenes-prune.c.h, after
obs-scene.c.h in the core-source unity group. The static walk
update_transforms_and_prune_sources stays in obs-scene.c.h behind a
forward declaration; video_lock/video_unlock are file-local copies,
undefined at the end (BUILD.md rule 5). No Rust, no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Client-Checks: {"checks":{"base":"e8cbea4dd0142b45229389ff871e402fda40050a","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-source+.h.c","libobs/obs-scene.c.h","libobs/obs-scenes-prune.c.h","test/cmocka/build/test-graph.json","test/cmocka/test_scene_prune_sources.c"],"head":"1a160b7c3341f8df306aba80c0dd8d61ecdfa862","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21503\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"188740cfdd730b6d8619dffc349c6e3ecc3998f0eb998ad575fc342350fc1c29","tree":"9d19591b47d57df2437e1098de2835a35e29037a"}}
Ci-Attestation: {"at":1795694027,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8178c80f14fefb57139bd7c4b0dd37351598fea6"],"secs":82,"stamp":"5fbf7fa9bbbf02be33fdf8e95735a619","tree":"9d19591b47d57df2437e1098de2835a35e29037a","v":1,"via":"run"}
Ci-Attestation: {"at":1795694027,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8178c80f14fefb57139bd7c4b0dd37351598fea6"],"secs":82,"stamp":"e22f6ecea50e0f0c5c43a7b6f573f1e2","tree":"9d19591b47d57df2437e1098de2835a35e29037a","v":1,"via":"run"}
Ci-Attestation: {"at":1795694027,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8178c80f14fefb57139bd7c4b0dd37351598fea6"],"secs":82,"stamp":"5b601b9d3d910be2dc4d3f9ea07f0905","tree":"9d19591b47d57df2437e1098de2835a35e29037a","v":1,"via":"run"}
Ci-Attestation: {"at":1795694027,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8178c80f14fefb57139bd7c4b0dd37351598fea6"],"secs":82,"stamp":"750f96ea49a71b9370312afc3d00904c","tree":"9d19591b47d57df2437e1098de2835a35e29037a","v":1,"via":"run"}
Ci-Attestation: {"at":1796410040,"gate":"general/all/client-lint","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"89327ad6cc953d2f4c95381c325b3e86","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1795694027,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["8178c80f14fefb57139bd7c4b0dd37351598fea6"],"secs":82,"stamp":"22107d798aba4553b59adacfd712f042","tree":"9d19591b47d57df2437e1098de2835a35e29037a","v":1,"via":"run"}
Ci-Attestation: {"at":1796410043,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"db7608fe950e70021d0ec56c18a1a676","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410043,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"c1ba79edc9b2bc1d47905c9d272f3600","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410042,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"6e74624bead466541df78ba2185945f3","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410042,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"4f33b17cd5cf4f4d07459328efefdc90","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410041,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"2434080e49125c91aa809cf2753a4fbe","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410041,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"1623d6b5ea69f4c23c6b7d0c12b0b66b","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410042,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"f6142971fa7fd180c93b89f8269a7cad","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410043,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"a4db986c9f4293f2a8f75fc9d3ed4e1c","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410041,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"3a0427b47f7be4194b1e8730897285c1","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410042,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"e2625a0acb439e7646b3934c48250c85","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410040,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"4427d5816e8e36d1950909eb3893c32b","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1796410041,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"26308a4bcc13b357ba67a9da0239d121ea7fb2ceab7004f961955fdd33bd1e02","lane":"client-lint","parents":["b52ebae18d56f704742be62a38c0f68e63ad2c4d"],"secs":91,"stamp":"ae3496da8a1d24985b0fcbf6d7f79857","tree":"a719b2495e5ce5da24114acd27e74eca8be14258","v":1,"via":"run"}
Ci-Attestation: {"at":1795694296,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"0dde10e31364a88f5dfecde654b8ef7aab17ceda50315c9da5bc4c12bae2a336","lane":"client-test-x86_64-unknown-linux-gnu","parents":["8178c80f14fefb57139bd7c4b0dd37351598fea6"],"secs":268,"stamp":"7d2d953d00d14036c78b8fd69928a76b","tree":"9d19591b47d57df2437e1098de2835a35e29037a","v":1,"via":"run"}
@zackees
zackees force-pushed the scene-prune-extract-5731 branch from e3b1042 to 1bb90ad Compare December 4, 2026 18:47

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs fix

Development

Successfully merging this pull request may close these issues.

1 participant