From 550870ea74c20e0ddd1bdf302189b163aa48b9f1 Mon Sep 17 00:00:00 2001 From: ziyuexiachu <771730766@qq.com> Date: Fri, 28 Feb 2025 12:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96track=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=B8=8D=E5=86=8D=E4=B8=8A=E9=94=81=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=AF=E8=83=BD=E6=AD=BB=E9=94=81=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/Frame.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Extension/Frame.h b/src/Extension/Frame.h index ca38b5a7..99d665fe 100644 --- a/src/Extension/Frame.h +++ b/src/Extension/Frame.h @@ -733,9 +733,9 @@ public: * [AUTO-TRANSLATED:a3e7e6db] */ bool inputFrame(const Frame::Ptr &frame) override { - std::lock_guard lck(_mtx); doStatistics(frame); bool ret = false; + std::lock_guard lck(_mtx); for (auto &pr : _delegates) { if (pr.second->inputFrame(frame)) { ret = true; @@ -767,7 +767,6 @@ public: * [AUTO-TRANSLATED:73cb2ab0] */ uint64_t getVideoKeyFrames() const { - std::lock_guard lck(_mtx); return _video_key_frames; } @@ -778,22 +777,18 @@ public: * [AUTO-TRANSLATED:118b395e] */ uint64_t getFrames() const { - std::lock_guard lck(_mtx); return _frames; } size_t getVideoGopSize() const { - std::lock_guard lck(_mtx); return _gop_size; } size_t getVideoGopInterval() const { - std::lock_guard lck(_mtx); return _gop_interval_ms; } int64_t getDuration() const { - std::lock_guard lck(_mtx); return _stamp.getRelativeStamp(); }