Repository navigation
shared: Move ipc-util, media-playback and inject-library platform code into platform files - #981
Merged
Merged
Conversation
…e into platform files media-playback: the MSVC warning push/disable 4244 4204/pop around the ffmpeg includes in decode.h and media.h moves, with exactly those includes, into platform-decode-ffmpeg.h and platform-media-ffmpeg.h, so the pragmas still cover only ffmpeg's headers (not a CMake /wd that would reach every consumer file). ipc-util: pipe.h's MSVC inline alias moves into platform-pipe-compat.h (top) and the pipe-windows.h/pipe-posix.h dispatch into platform-pipe.h (end of pipe.h, same position). inject-library: inject-library.c is Windows-only (win-capture) and is renamed inject-library-windows.c, no code change. The ratchet excludes the vendored shared/obs-d3d8-api/; the baseline drops all six files. Refs #886
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 #886 (part of #847).
#pragma warning(push)/disable 4244 4204/poparound the ffmpeg includes indecode.handmedia.hmoves, together with exactly those includes, intoplatform-decode-ffmpeg.handplatform-media-ffmpeg.h(blessed by ci: Ratchet platform conditionals in shared C/C++ files (#847) #900'splatform-prefix). The pragmas still cover only ffmpeg's headers. Not CMake/wdas facade: shared/ipc-util, media-playback, obs-inject-library: 7 platform conditionals (+ d3d8 vendored note) #886 suggested: these are public headers that obs-ffmpeg includes, so an INTERFACE/wd4244 /wd4204would silence those warnings in every consumer file.pipe.h's MSVCinlinealias moves intoplatform-pipe-compat.h(top ofpipe.h) and thepipe-windows.h/pipe-posix.hdispatch intoplatform-pipe.h(end ofpipe.h, same position, still insideextern "C").inject-library.cis built only by win-capture (Windows) and is renamedinject-library-windows.c, no code change.shared/obs-d3d8-api/(vendored Microsoft header) is excluded, as facade: shared/ipc-util, media-playback, obs-inject-library: 7 platform conditionals (+ d3d8 vendored note) #886 asks.All six files leave
ci/platform-ifdef-baseline.json(7 conditionals moved, 6 vendored excluded).Local: ratchet ok,
./lintok; Tier 2 OFF: every media-playback test (test_media_*,test_ffmpeg_restart_close, which compile these headers) passes. That run hittest_deinterlace_2x_field_order(real-time video cadence, #838), so the harness stopped before ON. PR CI runs both;ci-fullis set so the Windows MSVC build compiles the pragma wrappers, the inline alias and the renamed inject-library.