From b1cde03361226dc7afa0b51770b12587eba511f4 Mon Sep 17 00:00:00 2001 From: chenning Date: Tue, 2 Sep 2025 10:25:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9E=90=E6=9E=84=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98-=E5=95=86?= =?UTF-8?q?=E5=88=86=E5=90=88=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenning --- services/media_engine/filters/video_capture_filter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/media_engine/filters/video_capture_filter.cpp b/services/media_engine/filters/video_capture_filter.cpp index 3b6c1b378..460b85547 100644 --- a/services/media_engine/filters/video_capture_filter.cpp +++ b/services/media_engine/filters/video_capture_filter.cpp @@ -103,6 +103,9 @@ VideoCaptureFilter::VideoCaptureFilter(std::string name, FilterType type): Filte VideoCaptureFilter::~VideoCaptureFilter() { MEDIA_LOG_I("video capture filter destroy"); + if (inputSurface_ != nullptr) { + inputSurface_->UnregisterConsumerListener(); + } } Status VideoCaptureFilter::SetCodecFormat(const std::shared_ptr &format) -- Gitee