Repository navigation
libobs: Build the stop params before end_data_capture_thread starts (#2098) - #2100
Merged
Merged
Conversation
Member
Author
|
GREEN (TSan run 40078572852 on this branch, against master run 40074741825): The 7 left are a different case. A not-active stop ( |
This was referenced Oct 24, 2026
6 of 7 tasks
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.
Fixes #2098
This is the active-path twin of #2087.
obs_output_end_data_capture_internalcreatedend_data_capture_threadand then calledsignal_stop. The stop signal reads the encoders'last_error_message, but the thread frees it (stop_video_encoders→ … →obs_encoder_shutdown→obs_encoder_set_last_error(NULL)). The params are now built withstop_params_init(calldata_set_stringcopies the string) beforepthread_create, and emitted after withsignal_stop_params. The thread order and thesignal == falsepath are unchanged.RED: TSan run 40074741825 on master (after #2087) still has about 108 obs-encoder.c.h:2231 reports against obs-output.c.h:2732, read from
obs_output_end_data_capture_internal:2423. Only TSan shows this race, so there is no Tier 2 RED. GREEN is TSan run 40078572852 on this branch; I'll post the counts when it finishes. Tier 2 in PR CI checks that behavior is unchanged../lintpasses. obs-output has no Rust port.