Repository navigation
Conversation
…s-nix.c obs.c's 8 platform conditionals become five hooks declared in obs-internal.h, one implementation per host: - obs_video_host_init_encode_surface / _free_encode_surface: the Windows NV12/P010 encode staging surfaces (copy_surfaces_encode is a Windows-only field); no-ops elsewhere. obs.c keeps the loop's break. - obs_host_start_graphics_thread: macOS starts the autoreleasing thread with user-interactive QoS, the others the plain one. - obs_host_startup / obs_host_shutdown: COM init/uninit and its state on Windows; obs_startup's no-core failure path still undoes it. Behavior-preserving; obs.c leaves the #848 baseline. Refs #868
Member
Author
|
Superseded by #1069 (merged 11:03Z), which moved |
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 #868 (part of #847).
libobs/obs.c's 8 platform conditionals become five hooks declared inobs-internal.h, one implementation per host in the existingobs-windows.c,obs-cocoa.mandobs-nix.c(Linux and FreeBSD):obs_video_host_init_encode_surface(video, info, i)copy_surfaces_encodeis a Windows-only field)obs_video_host_free_encode_surface(video, i)obs_host_start_graphics_thread(thread, param)obs_graphics_threadQOS_CLASS_USER_INTERACTIVEobs_host_startup()/obs_host_shutdown()Behavior-preserving.
obs_init_textureskeeps itsbreakon the first failed surface;obs_startup's failure path with no core still undoes COM (else obs_host_shutdown()), alongside #1060's early return inobs_shutdown.obs.chas no platform conditionals left and leavesci/platform-ifdef-baseline.json.Local:
./lintrc 0, ratchet ok; full Tier 2 OFF: 256/258 passing, the two failures the real-time flakes of #838 (test_async_delay_audio,test_deinterlace_2x_field_order); the harness stops there, so ON runs in PR CI.ci-fullis set: the Windows and macOS hook implementations are compiled only by the native builds.