Repository navigation
libobs: characterize and extract the raw video callback entry points (Refs #5507) - #5509
Conversation
|
CI on this head failed in two places:
Locally I couldn't reproduce it. I ran the binary 300 times against each library, pinned to one CPU ( I'm rerunning the failed jobs once. If the Windows crash comes back, I'll capture a dump and fix the cause before this merges. |
Adds test_raw_video_callbacks: obs_add_raw_video_callback, obs_add_raw_video_callback2 and obs_remove_raw_video_callback against a stand-in main mix whose video the test opens, so no display is needed. Pins registration on the main mix's video, any nonzero divisor, zero divisor and NULL callback refused, repeats kept once, callback and param as the identity, removal of only its own pair, conversions, and following the current main mix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Moves obs_add_raw_video_callback, obs_add_raw_video_callback2 and obs_remove_raw_video_callback verbatim from obs.c.h into obs-raw-video-callbacks.c.h, a member of the core unity group (alphabetical, after obs-object-ref-fields.c.h), ahead of their Rust swap. start_raw_video and stop_raw_video, shared with outputs and encoders, stay in obs.c.h. No behavior change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1795432651,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":94,"stamp":"0a3c32ca5eca8a81e96299e1b970b152","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432651,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":94,"stamp":"89fa465886297da902d6719cd9a01432","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432651,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":94,"stamp":"4e73d242021a076b2037f6c8c6a33299","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432651,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":94,"stamp":"80d02099ac653536487688c681e9a549","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"general/all/client-lint","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"8975bca2bc8861bf0937bc657428db76","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432651,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":94,"stamp":"99b6caec150ade6e03a0415e6ed4d948","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"b91a261174723d47c365f543f463b308","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"53a409c97caeaef629c9599360ced1d8","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"b2c86a6f2ba6794632e6e373099c5ff5","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"e0af7abd84082caccdab6264504d4729","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"497213983e2599a208e4998a1f2ee556","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"19686ac5a5984dce09483067a75761dd","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"09db4a0a31c5c5e9765a26f40e0137fc","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"a55e5344f2f26694dabebdca16416c6d","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"9bbde4278bb69b24818c152c1b631e58","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"798e744da5a88348045bd85f9d03b4b4","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"0872fc497183fb3bd9c5e50561bf52d1","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432556,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"53a28b37114f264b91bbe62d557161349488e368d5ffbf12980b1f2c1320e81a","lane":"client-lint","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":11,"stamp":"50bdc79bf2e8c44e8c9237a1cf0a366f","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Ci-Attestation: {"at":1795432819,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"746564ffb312689c8eee5f7c5f5995c9242cb4ecedc0b286aa71b98b3c708963","lane":"client-test-x86_64-unknown-linux-gnu","parents":["221cdf90d6c5c47ddef16ec0b9219b3e9779c979"],"secs":167,"stamp":"7e6cc226438d96e8982e94036ab7ab98","tree":"38ee02db9a295da925273776c5a8841c31759381","v":1,"via":"run"} Client-Checks: {"checks":{"base":"997646201c11032ef3fc582020cf44372b1c4a7b","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/obs-raw-video-callbacks.c.h","libobs/obs.c.h","test/cmocka/build/test-graph.json","test/cmocka/test_raw_video_callbacks.c","test/cmocka/tests.d/test_raw_video_callbacks.cmake"],"head":"568e723a3f276d37f57dcf9b345852a0b045c4ab","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.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 21504-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"8a2608389ab73792ce48a6c63edd76568118a43650f670172fa350b116c210b4","tree":"38ee02db9a295da925273776c5a8841c31759381"}}
|
Rebased onto master after #5505 (conflict in |
… (Refs #5507) The video-io thread reads obs->name_store when it first runs. The teardown shut the core down before closing its two outputs, so a thread scheduled late (seen on the Windows Tier 2 runner) read the freed core and crashed. Close the outputs, which joins their threads, while the core is still up. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1795440729,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":95,"stamp":"0b25705ea739f1a0e418f455973c2c9e","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440729,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":95,"stamp":"421238ce3eb2d76aa40e4e47c6770d0b","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440729,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":95,"stamp":"5aa50a913a26441a3a8c68706870c9f7","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440729,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":95,"stamp":"a0cd540ed45a3771c6b068085df9d1a3","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"general/all/client-lint","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"06c5b0ea643a62880d361307ff7205e6","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440729,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":95,"stamp":"0b16cdb157cc5bd2ade7bdff421d34b2","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"65401e735ee3bbb93e84ad77218a1e2a","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"41695ad6ed043b794bba840cce35ab9c","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"bc6b8969d048424d0c390124842fb0b4","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"210d7544781f4e95d0bc0cb81daf3b7e","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"cb6a8da1489eb767f540b3b207ffb505","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"aaac5f054abcf2808da243977da34f60","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"be9926dca588106d47db9cbc86799181","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"f0b4926c6374524e0923994a5fe7a7b2","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"986e0213ec53e68c6ce40101ae978492","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"f0f699dd537f2ce6d9db9e63ebd614d8","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"59ffdc4837337c1225a7ea26b61b50a0","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440633,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"86631509f4e7c1885cc134f0e175ac3bda4587407a898f763c8757ff4b4a785a","lane":"client-lint","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":12,"stamp":"980e048c335d5f4fae21751caaabb074","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Ci-Attestation: {"at":1795440887,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"5602853d156f6210784f1c9ab4c95b9df5aaca5b694e2e3ee871798bf3a551a8","lane":"client-test-x86_64-unknown-linux-gnu","parents":["37349a3a43b49cd638d1cc60654629108e8641be"],"secs":157,"stamp":"ea852c77658061a87cf6a7403d8ea26e","tree":"ead9f96522ad3256c208b03954d890d985ffb019","v":1,"via":"run"} Client-Checks: {"checks":{"base":"a337cf66fc936b48fb211e2b4384d478c4e1ac4a","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/obs-raw-video-callbacks.c.h","libobs/obs.c.h","test/cmocka/build/test-graph.json","test/cmocka/test_raw_video_callbacks.c","test/cmocka/tests.d/test_raw_video_callbacks.cmake"],"head":"8afded44b22fa2157cf2af80e759f975580ace6a","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.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 21504-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"14e8a9c1d6c9a32ec64d2298c06a7c1efe92af72fff070b96f87fe67e34d2cd9","tree":"ead9f96522ad3256c208b03954d890d985ffb019"}}
d36b354 to
2b8b7f1
Compare
Refs #5507
C-only prerequisite for the Rust swap of the three public raw video callback entry points,
obs_add_raw_video_callback,obs_add_raw_video_callback2andobs_remove_raw_video_callback(Phase 6, #444). The video counterpart of the raw audio pair (#4727/#5003, #5505). Two commits:test_raw_video_callbackscmocka test through the public API. The main canvas mix is swapped for a zeroed stand-in whose video is an output the test opens (thetest_get_videopattern), so it needs no display. Registration is observed synchronously through video-io's own bookkeeping: a duplicatevideo_output_connectis refused and avideo_output_disconnect2of a missing pair reports false, neither changing anything. No frame is pushed, so no callback runs (Flaky Tier 2: test_source_transition_slots clear_empties_both_slots child_alive under load #4680). It pins: an add registers on the main mix's video and leaves another output alone; any nonzero divisor registers; a zero divisor or NULL callback registers nothing; repeats (including an add2 with another divisor) are kept once and one removal takes them out; callback and param together are the identity and a removal takes out only its own pair; removing a pair never added changes nothing; conversions are accepted; adds and removals follow the current main mix. The stand-in is not in the core's mix list, so itsraw_activecount stays at zero; the count on a real mix stays pinned bytest_video_active, and the calls before the firstobs_reset_videobytest_main_mix_before_video.obs.c.hintoobs-raw-video-callbacks.c.h, registered alphabetically in the core unity group.start_raw_videoandstop_raw_video, shared with outputs and encoders, stay inobs.c.h. No behavior change.No existing C test or public header changes.
One case is deliberately not exercised: a main mix whose
videois NULL. The C video-io (get_root) walks the video's parent before its NULL check, so that call crashes on the C reference (seen in a first draft of the test). A live mix always has a video, so it is unreachable in practice.Evidence
This characterizes unchanged behavior, so there is no RED commit: the test passes on master's code and must keep passing after the move.
OBS_CTEST_JOBS=10 uv run rust/tools/linux-validate/run.py --repeat 1 --tests test_raw_video_callbackspassed againstlibobs-c-reference([OFF]) and hybrid libobs ([ON]):100% tests passed, 0 tests failed out of 1088in each full run, andtest_raw_video_callbacks ... Passedin each filtered repeat. The test has no skip path, so a pass means all 7 cases ran.obs_add_raw_video_callback2made a no-op (if (1) return;before the mix lookup), the same command failstest_raw_video_callbacksonlibobs-c-reference: 6 of 7 cases FAILED atvideo_output_connect(video, NULL, callback, param) is not false;zero_divisor_and_null_callback_register_nothingpassed, as it should when nothing registers. (The run stops after the first library; 28 other tests that use the add also failed.)d36b354f9): the first Windows run segfaulted intest_raw_video_callbacksand passed on its cdb rerun. Cause: the teardown calledobs_shutdown()beforevideo_output_close(), and the video-io thread readsobs->name_storewhen it first runs, so a thread scheduled late reads a freed core. Reproduced on Linux by holding the video thread at its start for 3 s with anLD_PRELOADshim onpthread_setname_np: with the old teardown,obs_shutdownreturns, the thread wakes and the binary dies withSegmentation fault(11); with the outputs closed first, all 7 cases pass under the same delay, and both libraries pass without it. Only the test's teardown order changed../lint: ok.🤖 Generated with Claude Code