mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-08 12:24:09 +00:00
obs-webrtc: Use old obs_output functions
The obs-webrtc PR was merged before79822a58c
, but the PR of79822a58c
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:
parent
353a4c860d
commit
5cba879dd5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue