mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-18 21:38:29 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user