From c57c09624c33372f0a9d793621491ff2888fa9a0 Mon Sep 17 00:00:00 2001 From: Jacek Manko Date: Thu, 1 Aug 2024 18:03:48 +0200 Subject: [PATCH] ONEM-36369: Fix NoopEncoder Add missing GetEncoderInfo() implementation --- .../libwebrtc/gstreamer/GStreamerVideoEncoderFactory.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/WebCore/platform/mediastream/libwebrtc/gstreamer/GStreamerVideoEncoderFactory.cpp b/Source/WebCore/platform/mediastream/libwebrtc/gstreamer/GStreamerVideoEncoderFactory.cpp index a66e60b3beca5..9fafd00237de3 100644 --- a/Source/WebCore/platform/mediastream/libwebrtc/gstreamer/GStreamerVideoEncoderFactory.cpp +++ b/Source/WebCore/platform/mediastream/libwebrtc/gstreamer/GStreamerVideoEncoderFactory.cpp @@ -407,6 +407,12 @@ struct NoopEncoder : public webrtc::VideoEncoder { cricket::kH264FmtpPacketizationMode, "1" } }); supportedFormats->push_back(h264Format); } + + EncoderInfo GetEncoderInfo() const final { + EncoderInfo info; + info.is_hardware_accelerated = true; + return info; + } }; static bool useNoopEncoder() { return true; }