Skip to content

obs-outputs: RTMP output host code behind rtmp-stream-host.h (#851) - #2092

Merged
zackees merged 3 commits into
masterfrom
facade/851-rtmp
Oct 24, 2026
Merged

zackees merged 3 commits into
masterfrom
facade/851-rtmp

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #851 (slice 2 of 3: rtmp-stream.c.h, rtmp-stream.h, obs-outputs-rtmp.pch.h, 19 conditionals). Stacked on #2076 (its first three commits); rebased onto master once that lands.

  • rtmp-stream-host.h: last socket error, FIONREAD/FIONBIO, socket error → locale key, the root-certificate message (Linux hint stays in the POSIX host), send-buffer and interface logs, and the Windows-only send thread (rtmp_host_has_socket_loop/rtmp_host_start_socket_loop; the NewSocketLoop/LowLatency settings and properties stay Windows-only through it). Sockets cross the interface as uintptr_t.
  • rtmp-stream-host-windows.c.h (code moved verbatim: socket_queue_data, log_sndbuf_size, win32_log_interface_type, thread start) joins the existing obs-outputs.windows group with rtmp-windows.c; its PCH takes <iphlpapi.h> from rtmp-stream.h. rtmp-stream-host-posix.c.h has its own group.
  • TEST_FRAMEDROPS_WITH_BITRATE_SHORTCUTS (debug-only, not defined by any build) no longer also tests _WIN32; it was always Windows-only (GetAsyncKeyState).
  • win-version.h dropped from the rtmp PCH (unused there).
  • Cross check: Windows group (USE_MBEDTLS CRYPTO as the plugin builds it) and the POSIX group. test-graph.json: the two rtmp tests also build the POSIX host. Baseline: three entries removed.

RED: 21a4400 adds test_obs_outputs_rtmp_host (Tier 2: error keys, non-blocking + pending bytes on a socketpair, EBADF, no socket loop); fails to build.
GREEN: next commits. Locally the new test and all test_rtmp_* pass; cross win-x64 + mac-arm64 compile. Local-only failures: native-core canvas/shutdown/audio tests and test_deinterlace_2x_field_order, unrelated.

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

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Coordinator: this went UNMERGEABLE in the queue after #2076 landed. A local git rebase origin/master applies cleanly, but I can't push it: the facade/851-rtmp branch is protected, and GitHub's rebase button reports a conflict. Please push a rebase onto master; auto-merge will queue it again.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 24, 2026
@zackees
zackees enabled auto-merge October 24, 2026 09:02
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 3700c91 Oct 24, 2026
37 checks passed
@zackees
zackees deleted the facade/851-rtmp branch October 26, 2026 15:43
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.

1 participant