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.
This commit is contained in:
gxalpha 2023-06-11 01:22:41 +02:00 committed by Lain
parent 353a4c860d
commit 5cba879dd5

View file

@ -47,9 +47,9 @@ bool WHIPOutput::Start()
{
std::lock_guard<std::mutex> 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;
}