From 5cba879dd5c12dd9f1e270709cdbf8098048d439 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Sun, 11 Jun 2023 01:22:41 +0200 Subject: [PATCH] obs-webrtc: Use old obs_output functions The obs-webrtc PR was merged before 79822a58c, but the PR of 79822a58c was not rebased on latest master before being merged. As such, the usages of the obs_output_*2 functions was not removed by that PR. --- plugins/obs-webrtc/whip-output.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/obs-webrtc/whip-output.cpp b/plugins/obs-webrtc/whip-output.cpp index 8d45b7257..3879e65b7 100644 --- a/plugins/obs-webrtc/whip-output.cpp +++ b/plugins/obs-webrtc/whip-output.cpp @@ -47,9 +47,9 @@ bool WHIPOutput::Start() { std::lock_guard l(start_stop_mutex); - if (!obs_output_can_begin_data_capture2(output)) + if (!obs_output_can_begin_data_capture(output, 0)) return false; - if (!obs_output_initialize_encoders2(output)) + if (!obs_output_initialize_encoders(output, 0)) return false; if (start_stop_thread.joinable()) @@ -336,7 +336,7 @@ void WHIPOutput::StartThread() return; } - obs_output_begin_data_capture2(output); + obs_output_begin_data_capture(output, 0); running = true; }