Quellcode durchsuchen

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.
gxalpha vor 2 Jahren
Ursprung
Commit
5cba879dd5
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      plugins/obs-webrtc/whip-output.cpp

+ 3 - 3
plugins/obs-webrtc/whip-output.cpp

@@ -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;
 }