You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
obs-outputs: module host behind obs-outputs-host.h, portable bit helpers and min_size (#851) - #2096
Fixes#851 (slice 3 of 3: obs-outputs.c.h, obs-outputs.pch.h, mp4-mux-internal.h, utils.h). Stacked on #2092 (which is on #2076); rebased onto master as they land.
obs-outputs-host.h + obs-outputs-host-{windows,posix}.c.h: Winsock start/stop and the mbedtls MBEDTLS_THREADING_ALT critical-section mutexes move verbatim to the Windows host; POSIX load/unload do nothing. Own groups/PCHs; winsock2.h/mbedtls/threading.h leave the shared PCH.
utils.h: the _MSC_VER intrinsics branch is dropped. GCC/Clang/clang-cl keep the builtins; plain MSVC uses the portable popcount fallback already there (correct for every input, defined at 0).
mp4-mux-internal.h: the non-Windows min() (Windows got min from windows.h) becomes min_size() everywhere; its one caller is updated.
Cross check: both module host groups. Baseline: no plugins/obs-outputs entries left.
RED: e15405f adds test_obs_outputs_host (Tier 2: POSIX load/unload; clz32/ctz32 across bit positions); fails to build.
GREEN: next commit. Locally all test_obs_outputs_*, test_rtmp_*, test_mp4_* pass; cross win-x64 + mac-arm64 compile. Local-only failures are the same native-core canvas/shutdown/audio tests and test_deinterlace_2x_field_order, plus test_output_end_capture_thread_join (libobs, compiles no obs-outputs source).
Tiers 1/3/4 n/a (C restructuring, no behavior change).
Coordinator: Windows Tier 2 fails to compile. plugins/obs-outputs/utils.h(38,21): warning C4146: unary minus operator applied to unsigned type, result still unsigned is promoted to an error by C2220, in test_mp4_mux_multichannel and test_mp4_split_time (run 40077366177, job 120824619195). This PR is what makes those tests reach utils.h on Windows, so the fix belongs here, either a signed cast or 0 - x.
Coordinator: this is CONFLICTING now that #2092 landed. The only conflict is test/cmocka/test_obs_outputs_rtmp_host.c in test_no_socket_loop: master has assert_false(rtmp_host_has_socket_loop());, and this branch's copy of commit dde618a ("test: obs-outputs RTMP output POSIX host") doesn't. It looks like #2092's commits are still on this branch, so git rebase --onto origin/master <last #2092 commit> should drop them. The branch is protected, so I can't push it; please rebase.
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
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 #851 (slice 3 of 3:
obs-outputs.c.h,obs-outputs.pch.h,mp4-mux-internal.h,utils.h). Stacked on #2092 (which is on #2076); rebased onto master as they land.obs-outputs-host.h+obs-outputs-host-{windows,posix}.c.h: Winsock start/stop and the mbedtlsMBEDTLS_THREADING_ALTcritical-section mutexes move verbatim to the Windows host; POSIX load/unload do nothing. Own groups/PCHs;winsock2.h/mbedtls/threading.hleave the shared PCH.utils.h: the_MSC_VERintrinsics branch is dropped. GCC/Clang/clang-cl keep the builtins; plain MSVC uses the portable popcount fallback already there (correct for every input, defined at 0).mp4-mux-internal.h: the non-Windowsmin()(Windows gotminfrom windows.h) becomesmin_size()everywhere; its one caller is updated.plugins/obs-outputsentries left.RED: e15405f adds
test_obs_outputs_host(Tier 2: POSIX load/unload;clz32/ctz32across bit positions); fails to build.GREEN: next commit. Locally all
test_obs_outputs_*,test_rtmp_*,test_mp4_*pass; cross win-x64 + mac-arm64 compile. Local-only failures are the same native-core canvas/shutdown/audio tests andtest_deinterlace_2x_field_order, plustest_output_end_capture_thread_join(libobs, compiles no obs-outputs source).Tiers 1/3/4 n/a (C restructuring, no behavior change).