From cff8169f21f9ee22b82b135134efb002a7a10278 Mon Sep 17 00:00:00 2001 From: aoife cassidy Date: Tue, 3 Dec 2024 20:00:59 +0200 Subject: [PATCH] pure --- webrtc-sys/include/livekit/video_encoder_factory.h | 6 +++--- webrtc-sys/src/video_encoder_factory.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/webrtc-sys/include/livekit/video_encoder_factory.h b/webrtc-sys/include/livekit/video_encoder_factory.h index 1d7852f81..c3f90e925 100644 --- a/webrtc-sys/include/livekit/video_encoder_factory.h +++ b/webrtc-sys/include/livekit/video_encoder_factory.h @@ -31,8 +31,8 @@ class VideoEncoderFactory : public webrtc::VideoEncoderFactory { const webrtc::SdpVideoFormat& format, absl::optional scalability_mode) const override; - std::unique_ptr CreateVideoEncoder( - const webrtc::SdpVideoFormat& format) override; + std::unique_ptr Create( + const webrtc::Environment& env, const webrtc::SdpVideoFormat& format) override; private: std::vector> factories_; @@ -48,7 +48,7 @@ class VideoEncoderFactory : public webrtc::VideoEncoderFactory { absl::optional scalability_mode) const override; std::unique_ptr CreateVideoEncoder( - const webrtc::SdpVideoFormat& format) override; + const webrtc::SdpVideoFormat& format); private: std::unique_ptr internal_factory_; diff --git a/webrtc-sys/src/video_encoder_factory.cpp b/webrtc-sys/src/video_encoder_factory.cpp index a1e0acbd7..4696077ca 100644 --- a/webrtc-sys/src/video_encoder_factory.cpp +++ b/webrtc-sys/src/video_encoder_factory.cpp @@ -85,12 +85,12 @@ VideoEncoderFactory::InternalFactory::QueryCodecSupport( } std::unique_ptr -VideoEncoderFactory::InternalFactory::CreateVideoEncoder( - const webrtc::SdpVideoFormat& format) { +VideoEncoderFactory::InternalFactory::Create( + const webrtc::Environment& env, const webrtc::SdpVideoFormat& format) { for (const auto& factory : factories_) { for (const auto& supported_format : factory->GetSupportedFormats()) { if (supported_format.IsSameCodec(format)) - return factory->Create(webrtc::CreateEnvironment(), format); + return factory->Create(env, format); } }