Skip to content

Commit 31d42b2

Browse files
clang
1 parent 00086b4 commit 31d42b2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/livekit/capture_source.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class LIVEKIT_API CaptureSource {
183183
/// @param config GStreamer pipeline configuration.
184184
/// @return A future that resolves to the created capture source.
185185
/// @throws CaptureSourceError When awaiting the future if creation fails.
186-
static std::future<std::shared_ptr<CaptureSource>> create(GstreamerVideoSourceConfig config);
186+
static std::future<std::shared_ptr<CaptureSource>> create(const GstreamerVideoSourceConfig& config);
187187

188188
/// @brief Create the built-in test pattern capture source.
189189
///

‎src/capture_source.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ CaptureResult resultFromEvent(const proto::CaptureSourceEvent& event) {
120120

121121
} // namespace
122122

123-
std::future<std::shared_ptr<CaptureSource>> CaptureSource::create(GstreamerVideoSourceConfig config) {
124-
return createCaptureSource(std::move(config));
123+
std::future<std::shared_ptr<CaptureSource>> CaptureSource::create(const GstreamerVideoSourceConfig& config) {
124+
return createCaptureSource(config);
125125
}
126126

127127
proto::NewCaptureSourceRequest toProto(const GstreamerVideoSourceConfig& config) {

0 commit comments

Comments
 (0)