Skip to content

obs-ffmpeg: SRT/URL host code behind hosts/<os>/obs-ffmpeg-net-host.h, AMF PCH named for its host (#853) - #2068

Merged
zackees merged 3 commits into
masterfrom
facade/853-srt-url-amf
Oct 24, 2026
Merged

zackees merged 3 commits into
masterfrom
facade/853-srt-url-amf

Conversation

@zackees

@zackees zackees commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Fixes #853 (slice 4, the last: obs-ffmpeg-srt.h, obs-ffmpeg-url.h, the AMF PCH).

  • hosts/{windows,posix}/obs-ffmpeg-net-host.h (found via a hosts/<os> include directory, as obs-scripting: Python import host code behind obs-scripting-python-import-host.h (#882) #1993 did for obs-scripting): libsrt's syslog setup (Windows syslog codes / POSIX _SYS_SYSLOG_H + <syslog.h>, moved verbatim), obs_ffmpeg_host_wall_time() (ftime / clock_gettime(CLOCK_REALTIME)), obs_ffmpeg_host_gai_strerror() (gai_strerrorA / gai_strerror).
  • obs-ffmpeg-srt.h's three _WIN32 sites call those; obs-ffmpeg-url.h includes the host header.
  • build/obs-ffmpeg-amf.pch.hpp → obs-ffmpeg-amf-windows.pch.hpp (the BUILD.md <comp>-<group> name of its amf-windows group), so its Windows headers are in a Windows-named file.
  • Include dir added to obs-ffmpeg, to test/cmocka (directory scope, so the 27 tests compiling obs-ffmpeg sources find it without per-test edits) and to cmake/cross's obs-ffmpeg-cross.
  • Baseline: no plugins/obs-ffmpeg entries remain.

RED: 753aaa8 adds test_obs_ffmpeg_net_host (Tier 2): fails to build, no hosts/posix/obs-ffmpeg-net-host.h.
GREEN: following commits. Locally: test_obs_ffmpeg_net_host, test_srt_open_close, test_rist_open_cleanup, test_ffmpeg_output_* pass; cross win-x64 + mac-arm64 compile. Local-only failures test_deinterlace_2x_field_order, test_shutdown_* are unrelated native-core tests.

Tiers 1/3/4 n/a (C restructuring, no behavior change).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

facade: plugins/obs-ffmpeg: move 25 platform conditionals behind a per-platform layer

1 participant