obs-webrtc: Remove duplicate initialize calls

`obs_output_initialize_encoders()` and can_begin_data_capture are
already being called in the `Start()` function, so these duplicate
calls serve no function.

I'm assuming they were introduced accidentally during a previous
refactor.
This commit is contained in:
tt2468
2024-05-07 22:38:07 -07:00
parent e92accf136
commit 5b51d202b5

View File

@@ -188,18 +188,12 @@ void WHIPOutput::ConfigureVideoTrack(std::string media_stream_id,
}
/**
* @brief Initialize encoders and store connect info provided by the service.
* @brief Store connect info provided by the service.
*
* @return bool
*/
bool WHIPOutput::Init()
{
if (!obs_output_can_begin_data_capture(output, 0))
return false;
if (!obs_output_initialize_encoders(output, 0))
return false;
obs_service_t *service = obs_output_get_service(output);
if (!service) {
obs_output_signal_stop(output, OBS_OUTPUT_ERROR);